Skip to content

Keyboard handling #26

@Yamakaky

Description

@Yamakaky

https://github.com/techcompliant/TC-Specs/blob/master/Input/keyboard.md

How do we handle non-QWERTY keyboards? On my AZERTY keyboard, 0-9 is entered by pressing Shift. Same thing for all the symbols. Additionally, I'm not sure that "ASCII letters are uppercase when either shift or control are held down." is sound. In the real world, it's the OS which converts from key code to ascii using a QWERTY or ASCII charmap. I see two solutions:

  • we keep the current spec, but certain combinations of keys becomes impossible, like SHIFT + 1 on QUERTY
  • we change it to the real world behaviour, and the program has to do the mapping. Maybe then the keyboard could have a new int to get raw keys vs layout-mapped keys. Additionally, we could restrict the keyboard layout to QUERTY only
    What do you think?

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