-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Improving Scan Code and General Keyboard Layout Handling #732
Copy link
Copy link
Closed
Labels
C - needs discussionDirection must be ironed outDirection must be ironed outS - apiDesign and usabilityDesign and usabilityS - platform parityUnintended platform differencesUnintended platform differences
Description
Right now, we don't provide any way to convert ScanCodes to or from VirtualKeyCodes. Providing that is useful for storing layout-independent keymaps, but displaying the actual key to the user in a GUI.
What's more, because we're (usually) reporting the raw scan code provided by the OS there seems to be some inconsistency what key corresponds to what on different platforms. From my testing on Windows and Linux the letter/punctuation keys, number keys, function keys, and escape, space, shift, enter, tab, backspace, and caps keys are all identical across both platforms, but various other keys (such as arrow keys) weren't consistent. That makes it impossible to use scan codes to portably store keyboard layouts.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C - needs discussionDirection must be ironed outDirection must be ironed outS - apiDesign and usabilityDesign and usabilityS - platform parityUnintended platform differencesUnintended platform differences