diff --git a/src/fenrirscreenreader/core/commandManager.py b/src/fenrirscreenreader/core/commandManager.py index 631ca4ce..ebf0c8ba 100644 --- a/src/fenrirscreenreader/core/commandManager.py +++ b/src/fenrirscreenreader/core/commandManager.py @@ -255,8 +255,8 @@ class commandManager(): formattedKey = k if formatKeys: formattedKey = formattedKey.lower() - formattedKey = formattedKey.replace('key_kp', 'kp ') - formattedKey = formattedKey.replace('key_', '') + formattedKey = formattedKey.replace('key_kp', ' keypad ') + formattedKey = formattedKey.replace('key_', ' ') shortcut.append(formattedKey) rawShortcut.remove(k) # handle other keys @@ -264,8 +264,8 @@ class commandManager(): formattedKey = k if formatKeys: formattedKey = formattedKey.lower() - formattedKey = formattedKey.replace('key_kp', 'kp ') - formattedKey = formattedKey.replace('key_', '') + formattedKey = formattedKey.replace('key_kp', ' kp ') + formattedKey = formattedKey.replace('key_', ' ') shortcut.append(formattedKey) except: pass