mirror of
https://github.com/storytold/craft-libs.git
synced 2026-12-01 10:48:15 +01:00
Upstream's editor runs in a restoring focus scope (FocusPolicy::TAB_LAYER), so an ended session hands focus back to the stop it came from. A form field's editor takes focus from the field's own page part, and focus arriving back there opens the field again: Esc, Enter and picks no longer closed PdfCraft's fields. Component::focus_scope (default FOCUS_SCOPE) lets an instance choose its scope; returns_focus(false) opens none. Upstream's default is unchanged. Trial: an_editor_that_does_not_return_focus_leaves_its_opener_alone.