Skip to content

Function keysym_to_keycode return 0 #266

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

Open
Candy-Cao opened this issue Jul 18, 2023 · 0 comments
Open

Function keysym_to_keycode return 0 #266

Candy-Cao opened this issue Jul 18, 2023 · 0 comments

Comments

@Candy-Cao
Copy link

Candy-Cao commented Jul 18, 2023

i use code below to get the keycode of 'a',but it return 0, what should i do?

from Xlib import X, XK, display
from Xlib.ext import xtest

d = display.Display()
keycode = d.keysym_to_keycode(XK.string_to_keysym('a'))
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