Skip to content

Arrow-key focus without FocusNeighbor; composition only for editable text - #22

Merged
zignd merged 2 commits into
mainfrom
fix/arrow-focus-and-text-composition
Oct 11, 2026
Merged

zignd merged 2 commits into
mainfrom
fix/arrow-focus-and-text-composition

Conversation

@zignd

@zignd zignd commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

Two small input fixes the Textus game depends on.

  • feat(input): arrow keys move focus to the nearest focusable control when no FocusNeighbor is set (menus become keyboard-navigable). Lists, grids, sliders and editors that own the arrows are unaffected; explicit neighbors still win.
  • fix(text): only an editable text control activates the host's text composition. Activating it for a focused button made the browser's composition proxy take every printable key, so a game could not read a letter key as a shortcut. Adds a ListBox wheel test.

zignd added 2 commits October 11, 2026 00:19
A plain action menu is keyboard-navigable without every author wiring FocusNeighborLeft and friends. Controls that own the arrows (lists, grids, sliders, editors) override KeyPressed and are unaffected; explicit neighbors still win.
…mposition

Activating the text input for a focused button as well made the browser's composition proxy take every printable key, so a game could never read a letter key as a shortcut. Also covers the ListBox pointer wheel with a test.
@zignd
zignd merged commit 0ba511b into main Oct 11, 2026
15 checks passed
@zignd
zignd deleted the fix/arrow-focus-and-text-composition branch October 11, 2026 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant