mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 20:14:31 +01:00
focus::host_stop registers an app's own egui widget as a focus stop (Stop::host, as host_canvas does, without marking a document canvas), so a window that has framework stops and the app's own widgets keeps one framework Tab order holding both, in registration order. A canvas keeps Tab only while it has the focus. With nothing focused a bare Tab moves focus into the window or toggles the panels, even for a canvas that keeps Tab, as the unfocused canvas's claims already never take Tab: the canvas cannot trap keyboard navigation. The last assertion of a_host_canvas_marks_the_window_and_tab_toggles_its_panels changes to this rule: with nothing focused, the Tab toggles the panels instead of reaching the canvas in egui. The unused Strip::canvas field goes with the old rule.