Update helpManager.py

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

View File

@ -42,11 +42,10 @@ class helpManager():
if command == 'TOGGLE_TUTORIAL_MODE': if command == 'TOGGLE_TUTORIAL_MODE':
commandDescription = _('toggles the tutorial mode') commandDescription = _('toggles the tutorial mode')
else: else:
commandDescription = self.env['runtime']['commandManager'].getCommandDescription( command, section = 'commands') commandDescription = self.env['runtime']['commandManager'].getCommandDescription(command, section = 'commands')
if commandDescription == '': if commandDescription == '':
commandDescription = 'no Description available' commandDescription = 'no Description available'
commandShortcut = self.env['runtime']['commandManager'].getShortcutForCommand( command) commandShortcut = self.env['runtime']['commandManager'].getShortcutForCommand(command, formatKeys = True)
commandShortcut = commandShortcut.replace('KEY_',' ')
commandShortcut = commandShortcut.replace('[','') commandShortcut = commandShortcut.replace('[','')
commandShortcut = commandShortcut.replace(']','') commandShortcut = commandShortcut.replace(']','')
commandShortcut = commandShortcut.replace("'",'') commandShortcut = commandShortcut.replace("'",'')