Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

unable to get proper keyboard scancode for non US keyboard #150

@qunying

Description

@qunying

Hi,

I am developing an RDP client with emscripten+SDL2, everything works on US keyboard, but once change to non US keyboard (Italian/German, etc), some keys would get the wrong scancode.

Not sure how emscirpten is translating its key event to the SDL library, as modern browsers do provide correct scancode from KeyboardEvent.code.

Any pointers for me to do a proper mapping from KeyboardEvent.code to SDL's scancode?

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