mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-25 19:07:17 -06:00
Clicks on ribbon chrome that isn't a command button (Styles gallery tiles, tab names, empty ribbon space, View check boxes, status-bar items) left the page without keyboard focus. The click was caught at the end of the frame, after the page had been drawn: want_focus was only picked up next frame and the page's focused flag, which gates the keys, not recomputed until then either, so the keystroke right after the click went nowhere. Claim the keyboard in the same frame a ribbon command button does, using the page's widget id from the frame just drawn. Co-authored-by: Brandon Thomas <echelon@gmail.com>