Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Add support for keyboard scancode #1033

Open
xobs opened this issue Mar 18, 2020 · 0 comments
Open

Add support for keyboard scancode #1033

xobs opened this issue Mar 18, 2020 · 0 comments

Comments

@xobs
Copy link

xobs commented Mar 18, 2020

The keydown and keyup handlers provide translated characters. For example, if I press the b key, then I get an event with KeyEventArgs.Key == 'b', and KeyEventArgs.NativeKeyCode == 45.

However, if I switch my keyboard to Dvorak and press the exact same key, I get KeyEventArgs.Key == 'x' and KeyEventArgs.NativeKeyCode == 67.

It is understandable that the Key changes, because the layout has changed. However, the NativeKeyCode should remain the same. Failing that, an additional property with the scancode should be added.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant