Update commandManager.py
This commit is contained in:
parent
ec4b1408b6
commit
a5b7694e59
@ -249,6 +249,15 @@ class commandManager():
|
|||||||
shortcut = []
|
shortcut = []
|
||||||
try:
|
try:
|
||||||
rawShortcut = list(self.env['bindings'].keys())[list(self.env['bindings'].values()).index(command)]
|
rawShortcut = list(self.env['bindings'].keys())[list(self.env['bindings'].values()).index(command)]
|
||||||
|
# prefer numbers for multitap
|
||||||
|
for k in ['2', '3', '4', '5', '6', '7', '8']:
|
||||||
|
if k in rawShortcut:
|
||||||
|
formattedKey = k
|
||||||
|
if formatKeys:
|
||||||
|
formattedKey = formattedKey.lower()
|
||||||
|
formattedKey += ' times '
|
||||||
|
shortcut.append(formattedKey)
|
||||||
|
rawShortcut.remove(k)
|
||||||
# prefer metha keys
|
# prefer metha keys
|
||||||
for k in ['KEY_FENRIR', 'KEY_SCRIPT', 'KEY_CTRL', 'KEY_SHIFT', 'KEY_ALT', 'KEY_META']:
|
for k in ['KEY_FENRIR', 'KEY_SCRIPT', 'KEY_CTRL', 'KEY_SHIFT', 'KEY_ALT', 'KEY_META']:
|
||||||
if k in rawShortcut:
|
if k in rawShortcut:
|
||||||
@ -264,7 +273,7 @@ class commandManager():
|
|||||||
formattedKey = k
|
formattedKey = k
|
||||||
if formatKeys:
|
if formatKeys:
|
||||||
formattedKey = formattedKey.lower()
|
formattedKey = formattedKey.lower()
|
||||||
formattedKey = formattedKey.replace('key_kp', ' kp ')
|
formattedKey = formattedKey.replace('key_kp', ' keypad ')
|
||||||
formattedKey = formattedKey.replace('key_', ' ')
|
formattedKey = formattedKey.replace('key_', ' ')
|
||||||
shortcut.append(formattedKey)
|
shortcut.append(formattedKey)
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user