From 2082c73554d16ced8835a397373750d3118e4eff Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 19 Aug 2019 17:11:49 +0200 Subject: [PATCH] Update helpManager.py --- src/fenrirscreenreader/core/helpManager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fenrirscreenreader/core/helpManager.py b/src/fenrirscreenreader/core/helpManager.py index 61fb02a5..b20ac9b8 100755 --- a/src/fenrirscreenreader/core/helpManager.py +++ b/src/fenrirscreenreader/core/helpManager.py @@ -42,11 +42,10 @@ class helpManager(): if command == 'TOGGLE_TUTORIAL_MODE': commandDescription = _('toggles the tutorial mode') else: - commandDescription = self.env['runtime']['commandManager'].getCommandDescription( command, section = 'commands') + commandDescription = self.env['runtime']['commandManager'].getCommandDescription(command, section = 'commands') if commandDescription == '': commandDescription = 'no Description available' - commandShortcut = self.env['runtime']['commandManager'].getShortcutForCommand( command) - commandShortcut = commandShortcut.replace('KEY_',' ') + commandShortcut = self.env['runtime']['commandManager'].getShortcutForCommand(command, formatKeys = True) commandShortcut = commandShortcut.replace('[','') commandShortcut = commandShortcut.replace(']','') commandShortcut = commandShortcut.replace("'",'')