From de7fe4c25f05a77ff0a2f8762b8919e4cd0d3732 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Fri, 26 Aug 2016 10:53:24 +0200 Subject: [PATCH] Update fenrir.py --- src/fenrir-package/fenrir.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fenrir-package/fenrir.py b/src/fenrir-package/fenrir.py index 536fa220..db24e367 100755 --- a/src/fenrir-package/fenrir.py +++ b/src/fenrir-package/fenrir.py @@ -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 not self.environment['input']['keyForeward']: if self.environment['commandInfo']['currCommand'] != '': self.handleCommands()