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