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

Wrong keys sent with altgr-intl keyboard layout (Linux) #573

Open
dominique-unruh opened this issue Sep 20, 2023 · 0 comments
Open

Wrong keys sent with altgr-intl keyboard layout (Linux) #573

dominique-unruh opened this issue Sep 20, 2023 · 0 comments

Comments

@dominique-unruh
Copy link

Description

When using keyboard layout altgr-intl on Linux (X), and sending letters accessible via AltGr, the wrong characters are sent.

For example, when sending ü (which would be typed AltGr-Y), it sends Y (which would be typed Shift-Y).

Platform and pynput version
Pynput: 1.7.6
Python: 3.11.5
OS: Linux, Endeavour OS (Linux unruh-work 6.5.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 13 Sep 2023 08:37:40 +0000 x86_64 GNU/Linux)

To Reproduce

Configure keyboard (in the shell):

setxkbmap -option caps:hyper2 -layout us -variant altgr-intl

And in Python:

import pynput; import time; k = pynput.keyboard.Controller(); k.tap('ü')
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

1 participant