Browse Source

Fix a very awkward mistake in fixing issue 25

Teascade 1 year ago
parent
commit
e4cca123c9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      pyxhook.py

+ 1
- 1
pyxhook.py View File

@@ -309,7 +309,7 @@ class HookManager(threading.Thread):
309 309
     def lookup_keysym(self, keysym):
310 310
         for name in dir(XK):
311 311
             if name.startswith("XK_") and getattr(XK, name) == keysym:
312
-                return name[:3]
312
+                return name[3:]
313 313
         return "[{}]".format(keysym)
314 314
 
315 315
     def asciivalue(self, keysym):