From 344db17f5a94ceca44ec570aa0ea6e40ceb936a3 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 30 Aug 2016 11:59:38 +0200 Subject: [PATCH] Update inputManager.py --- src/fenrir-package/core/inputManager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fenrir-package/core/inputManager.py b/src/fenrir-package/core/inputManager.py index 4e2ab993..ebe07e56 100644 --- a/src/fenrir-package/core/inputManager.py +++ b/src/fenrir-package/core/inputManager.py @@ -13,7 +13,8 @@ class inputManager(): self.getInputDevices() self.grabDevices() self.ignoreKeyRelease = 0 - + if environment['generalInformation ']['suspend']: + return environment def proceedInputEvents(self, environment): timeout = True if not environment['input']['keyForeward']: @@ -25,7 +26,7 @@ class inputManager(): for fd in r: for event in self.iDevices[fd].read(): if self.isFenrirKey(environment, event): - environment['input']['consumeKey'] = not environment['input']['keyForeward'] + environment['input']['consumeKey'] = not environment['input']['keyForeward'] and not environment['generalInformation ']['suspend'] if self.isConsumeKeypress(environment): self.writeUInput(self.uDevices[fd], event) keyString = ''