diff --git a/pyxhook.py b/pyxhook.py index bedf60b..3b23b00 100644 --- a/pyxhook.py +++ b/pyxhook.py @@ -309,7 +309,7 @@ class HookManager(threading.Thread): def lookup_keysym(self, keysym): for name in dir(XK): if name.startswith("XK_") and getattr(XK, name) == keysym: - return name[:3] + return name[3:] return "[{}]".format(keysym) def asciivalue(self, keysym):