Files
craft-libs/crates/ui-patterns/src/patterns
dotCooCoo ca8556c9c4 ui-contract, ui-patterns: Enter in a list manager's name box runs its enabled first action
With no row picked, Enter in a list manager's name box did nothing, while a click on the
first action ran it. The name box drives the list, so the key router sent Enter to the list
as an activation, and a list with no lead row took it without acting on it. The list manager
also turned the dialog's Enter rule off, so the default button could not take the key.

- ui-contract: a collection records whether it has a lead row, and a text field that drives a
  collection without one keeps Enter as its submit. A driven target that records nothing (a
  menu) still takes Enter.
- ui-patterns: `ListManager` turns `close_on_enter` on, so Enter runs the first action while it
  is enabled, as its doc says. Enter on a lead row the name box no longer names (a name typed
  after picking a row) runs the first action on the typed name instead of the row's.
2026-11-25 07:28:58 -08:00
..