TODO: 'Hotkey' setting works.

Tested with:

  	NumPad 5 (revealed s/unichr/chr/ issue)
	F1
	Ctrl+Shift+F1
	Shift+Ins
	Shift+Del
This commit is contained in:
Athanasius committed 2020-06-21 16:23:00 +01:00
1 parent a2fbf88e21
commit a0096c3d6e
1 file changed
+4 -4
+4 -4
View File
@@ -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):