Update commandManager.py

This commit is contained in:
chrys 2019-08-19 17:12:45 +02:00 committed by GitHub
parent 2082c73554
commit ec4b1408b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,8 +255,8 @@ 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)
rawShortcut.remove(k) rawShortcut.remove(k)
# handle other keys # handle other keys
@ -264,8 +264,8 @@ 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', ' kp ')
formattedKey = formattedKey.replace('key_', '') formattedKey = formattedKey.replace('key_', ' ')
shortcut.append(formattedKey) shortcut.append(formattedKey)
except: except:
pass pass