corrected missing : also fixed indentation in core/inputManager.py
This commit is contained in:
parent
cdf1c00434
commit
9d5d3427a5
@ -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'
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user