Skip to content

Better key handling for macOS and Qt#4216

Draft
corranwebster wants to merge 8 commits intobeeware:mainfrom
corranwebster:better-key-handling
Draft

Better key handling for macOS and Qt#4216
corranwebster wants to merge 8 commits intobeeware:mainfrom
corranwebster:better-key-handling

Conversation

@corranwebster
Copy link
Contributor

@corranwebster corranwebster commented Mar 3, 2026

On macOS, this PR minimises the use of hardware key codes for interpreting key events on macOS in favour of using the various character methods to determine the intended key press based on the keyboard layout. It doesn't yet add toga support for non-US characters, but should improve things like mapping keys correctly on an AZERTY layout keyboard.

On Qt, this PR fixes some missing key codes and fixes some issues raised by new tests.

Ref #2428.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@corranwebster corranwebster changed the title Better key handling for macOS Better key handling for macOS and Qt Mar 4, 2026
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