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

Add support for keyboard scancode #1033

Description

@xobs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions