From 255e54ecea85a863fd4c4e43d760abf662e24ed3 Mon Sep 17 00:00:00 2001 From: chrys Date: Sat, 13 Aug 2016 00:06:54 +0200 Subject: [PATCH] initial key foreward --- config/keyboard/desktop.conf | 1 + config/keyboard/laptop.conf | 1 + config/keyboard/test.conf | 1 + src/fenrir-package/core/inputManager.py | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/keyboard/desktop.conf b/config/keyboard/desktop.conf index 14d9ab92..0954189c 100644 --- a/config/keyboard/desktop.conf +++ b/config/keyboard/desktop.conf @@ -18,3 +18,4 @@ #=toggle_output #=toggle_autoRead #=quit_fenrir +#=foreward_keypress diff --git a/config/keyboard/laptop.conf b/config/keyboard/laptop.conf index 5055afff..fb1612f5 100644 --- a/config/keyboard/laptop.conf +++ b/config/keyboard/laptop.conf @@ -18,3 +18,4 @@ #=toggle_output #=toggle_autoRead #=quit_fenrir +#=foreward_keypress diff --git a/config/keyboard/test.conf b/config/keyboard/test.conf index aff5e93a..11b19d9a 100644 --- a/config/keyboard/test.conf +++ b/config/keyboard/test.conf @@ -18,3 +18,4 @@ #=toggle_output #=toggle_autoRead #=quit_fenrir +#=foreward_keypress diff --git a/src/fenrir-package/core/inputManager.py b/src/fenrir-package/core/inputManager.py index 06679268..ce403474 100644 --- a/src/fenrir-package/core/inputManager.py +++ b/src/fenrir-package/core/inputManager.py @@ -21,7 +21,7 @@ class inputManager(): for event in self.iDevices[fd].read(): if self.isFenrirKey(environment, event): # a environment['input']['consumeKey'] = not environment['input']['keyForeward'] - if not environment['input']['consumeKey']: + if not environment['input']['consumeKey'] or environment['input']['keyForeward']: self.uDevices[fd].write_event(event) self.uDevices[fd].syn() else: