Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible keyboard layout mess on linux #31

Open
macbrayne opened this issue Dec 15, 2020 · 2 comments
Open

Possible keyboard layout mess on linux #31

macbrayne opened this issue Dec 15, 2020 · 2 comments

Comments

@macbrayne
Copy link
Contributor

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)

@macbrayne
Copy link
Contributor Author

'€' using ALTGR+E is also affected

@ostrosco
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants