mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-06 04:29:34 +02:00
The previous clearBodyFocus() set focus = false on navRoot.activeFocusItem and called navRoot.forceActiveFocus(), which works for plain Rectangles but not for Controls 2 widgets like ComboBox: the combo keeps an internal focused child that the surrounding FocusScope happily restores, so the accent focus border on the Position/Center anchor dropdowns lingered after backing out to the sidebar. Add an invisible 1x1 navFocusSink Item inside navRoot and force focus onto it whenever the user leaves the body (h/Esc/Shift-Tab, category changes from sidebar nav, or panel reopens). The sink reliably owns activeFocus so every body control \u2014 ComboBox included \u2014 falls back to its unfocused style.