corrected missing : also fixed indentation in core/inputManager.py

This commit is contained in:
Storm Dragon 2016-09-27 10:34:15 -04:00
parent cdf1c00434
commit 9d5d3427a5
2 changed files with 3 additions and 3 deletions

View File

@ -70,8 +70,8 @@ class inputManager():
def convertEventName(self, eventName): def convertEventName(self, eventName):
if not eventName: if not eventName:
return '' return ''
if eventName == '': if eventName == '':
return '' return ''
eventName = eventName.upper() eventName = eventName.upper()
if eventName == 'KEY_LEFTCTRL': if eventName == 'KEY_LEFTCTRL':
eventName = 'KEY_CTRL' eventName = 'KEY_CTRL'

View File

@ -82,7 +82,7 @@ class fenrir():
command = self.environment['runtime']['inputManager'].getCommandForShortcut(shortcut) command = self.environment['runtime']['inputManager'].getCommandForShortcut(shortcut)
if len(self.environment['input']['prevDeepestInput']) < len(self.environment['input']['currInput']): if len(self.environment['input']['prevDeepestInput']) < len(self.environment['input']['currInput']):
self.wasCommand = command != '' self.wasCommand = command != ''
if command == '' if command == '':
return return
self.environment['runtime']['commandManager'].queueCommand(command) self.environment['runtime']['commandManager'].queueCommand(command)