Fix a very awkward mistake in fixing issue 25
This commit is contained in:
parent
0ad08ed77f
commit
e4cca123c9
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user