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':
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("'",'')