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
1 changed files with 1 additions and 1 deletions

View File

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