mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-07 10:53:26 +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
a2fbf88e21
commit
a0096c3d6e
@ -163,9 +163,9 @@ if platform == 'darwin':
|
|||||||
elif keycode in HotkeyMgr.DISPLAY: # specials
|
elif keycode in HotkeyMgr.DISPLAY: # specials
|
||||||
text += HotkeyMgr.DISPLAY[keycode]
|
text += HotkeyMgr.DISPLAY[keycode]
|
||||||
elif keycode < 0x20: # control keys
|
elif keycode < 0x20: # control keys
|
||||||
text += unichr(keycode+0x40)
|
text += chr(keycode+0x40)
|
||||||
elif keycode < 0xf700: # key char
|
elif keycode < 0xf700: # key char
|
||||||
text += unichr(keycode).upper()
|
text += chr(keycode).upper()
|
||||||
else:
|
else:
|
||||||
text += u'⁈'
|
text += u'⁈'
|
||||||
return text
|
return text
|
||||||
@ -388,9 +388,9 @@ elif platform == 'win32':
|
|||||||
if not c: # oops not printable
|
if not c: # oops not printable
|
||||||
text += u'⁈'
|
text += u'⁈'
|
||||||
elif c < 0x20: # control keys
|
elif c < 0x20: # control keys
|
||||||
text += unichr(c+0x40)
|
text += chr(c+0x40)
|
||||||
else:
|
else:
|
||||||
text += unichr(c).upper()
|
text += chr(c).upper()
|
||||||
return text
|
return text
|
||||||
|
|
||||||
def play_good(self):
|
def play_good(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user