Update inputManager.py

This commit is contained in:
chrys87 2016-09-27 16:13:32 +02:00 committed by GitHub
parent e164408fb7
commit 318a153c22

View File

@ -138,10 +138,9 @@ class inputManager():
return eventName in self.env['input']['fenrirKey'] return eventName in self.env['input']['fenrirKey']
def getCommandForShortcut(self, shortcut): def getCommandForShortcut(self, shortcut):
shortcut = shortcut.upper()
if not self.shortcutExists(shortcut): if not self.shortcutExists(shortcut):
return '' return ''
return self.env['bindings'][shortcut].upper() return self.env['bindings'][shortcut]
def shortcutExists(self, shortcut): def shortcutExists(self, shortcut):
return( str(shortcut).upper() in self.env['bindings']) return(shortcut in self.env['bindings'])