-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use event keys, not codes, to work properly with remapped keyboards
When reacting to key events, use the `key` field of the events rather than the `code` field, because the latter refers to the physical keyboard key and the former refers to the key as remapped by the user, which is what we obviously want. If they've remapped their keyboard we want to obey the remapping! This is the last piece of the fix for #583. It may also be a fix for
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters