Get key position of QKeyEvent (multiplatform)

前端 未结 1 1894
悲&欢浪女
悲&欢浪女 2021-01-25 15:01

In order to make position-based keyboard shortcuts, that work for all keyboard layouts, I need to identify a physical keyboard key, without the keyboard layout on top of it. Ide

相关标签:
1条回答
  • 2021-01-25 15:54

    You already have the most multiplatform way of doing it. Except that Qt hasn't implemented it for OS X yet, at least as of Qt 5.7.

    Feel free to patch your copy of Qt to include a HID event tap to get the scancodes, see e.g. this question.

    0 讨论(0)
提交回复
热议问题