Fix a very awkward mistake in fixing issue 25

This commit is contained in:
Sofia 2018-12-11 02:57:40 +02:00
parent 0ad08ed77f
commit e4cca123c9

View File

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