Browse Source

Fix a very awkward mistake in fixing issue 25

master
Sofia 5 years ago
parent
commit
e4cca123c9
  1. 2
      pyxhook.py

2
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):

Loading…
Cancel
Save