From e4cca123c94653428a37af2d995b1135678cdf1a Mon Sep 17 00:00:00 2001 From: teascade Date: Tue, 11 Dec 2018 02:57:40 +0200 Subject: [PATCH] Fix a very awkward mistake in fixing issue 25 --- pyxhook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyxhook.py b/pyxhook.py index bedf60b..3b23b00 100644 --- a/pyxhook.py +++ b/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):