mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 01:22:19 +03:00
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:
parent
5caf861172
commit
89df69601d
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user