mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-29 17:55:45 +01:00
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.