From a0096c3d6ef9675701da975dc94b623b52fb3d9e Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 12 Sep 2019 12:56:03 +0100 Subject: [PATCH] TODO: 'Hotkey' setting works. Tested with: NumPad 5 (revealed s/unichr/chr/ issue) F1 Ctrl+Shift+F1 Shift+Ins Shift+Del --- hotkey.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hotkey.py b/hotkey.py index becc2f00..1cfaf223 100644 --- a/hotkey.py +++ b/hotkey.py @@ -163,9 +163,9 @@ if platform == 'darwin': elif keycode in HotkeyMgr.DISPLAY: # specials text += HotkeyMgr.DISPLAY[keycode] elif keycode < 0x20: # control keys - text += unichr(keycode+0x40) + text += chr(keycode+0x40) elif keycode < 0xf700: # key char - text += unichr(keycode).upper() + text += chr(keycode).upper() else: text += u'⁈' return text @@ -388,9 +388,9 @@ elif platform == 'win32': if not c: # oops not printable text += u'⁈' elif c < 0x20: # control keys - text += unichr(c+0x40) + text += chr(c+0x40) else: - text += unichr(c).upper() + text += chr(c).upper() return text def play_good(self):