Files
craft-libs/crates/ui-patterns/tests/it/form_dialogs
ljkx 7be4487c58 fix(ui-contract): a dialog that opens on a text field selects its text
A focus scope shown for the first time moves focus to its initial stop
(a dialog's `Initial::FirstField`), but a plain text field then put the
caret after its text, as its codec asks for any focus gain, so typing
added to the value instead of replacing it (New Layer's name read
"Layer 17" after typing "7").

The initial focus now records its own origin, `FocusOrigin::Open`. A text
part that gains focus that way selects its whole text whatever its codec's
caret. Tab and clicks keep their caret rules, and `focus_arrived_by_key`
still counts the open as an arrival by key, as before.

photocraft#15540, part of storytold/photocraft#15476.
2026-11-18 17:15:31 +01:00
..
2026-11-15 04:46:07 +00:00
2026-11-15 04:46:07 +00:00
2026-11-15 04:46:06 +00:00
2026-11-16 14:34:57 +00:00