From ec4b1408b66143613dbac4afe559356bc2cb1cd2 Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 19 Aug 2019 17:12:45 +0200 Subject: [PATCH] Update commandManager.py --- src/fenrirscreenreader/core/commandManager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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