device_query
device_query copied to clipboard
Possible keyboard layout mess on linux
When trying to input a '@' key using a German QWERTZ keyboard (so ALTGR+Q), the crate outputs "Key2" instead of L-CONTROL+R-ALT+Q. This is probably due to Linux/X11 translating the keycodes into a american keyboard layout in which the number row 2 key is used for typing '@'. In contrast on Windows the correct key is output. The same basic problem applies to the key combination for 'µ' using ALTGR+M with no keycode whatsoever being output.
I suppose the issue doesn't lie with this crate but the way the keycodes are obtained. Are there any different less problematic methods of obtaining keycodes? If not, what can be done to mitigate this problem?
(Used the print_keycode example for testing)
'€' using ALTGR+E is also affected
I'd be happy to take a look at options for this! I'll do some digging and see what we can find. Alternate keyboard layout support is something I'm interested in pursuing.