Update fenrir.py

This commit is contained in:
chrys87 2016-08-26 10:53:24 +02:00 committed by GitHub
parent d46b37b4e1
commit de7fe4c25f

View File

@ -27,11 +27,12 @@ class fenrir():
def handleProcess(self):
self.environment, timeout = self.environment['runtime']['inputManager'].proceedInputEvents(self.environment)
self.environment = self.environment['runtime']['screenDriver'].analyzeScreen(self.environment)
if not self.environment['input']['keyForeward']:
self.environment = self.environment['runtime']['commandManager'].getCommandForShortcut(self.environment)
if not timeout:
self.environment = self.environment['runtime']['commandManager'].executeTriggerCommands(self.environment, 'onInput')
self.environment = self.environment['runtime']['commandManager'].executeTriggerCommands(self.environment, 'onScreenChanged')
if not self.environment['input']['keyForeward']:
self.environment = self.environment['runtime']['commandManager'].getCommandForShortcut(self.environment)
if self.environment['commandInfo']['currCommand'] != '':
self.handleCommands()