From f0ad59712d0e5d03c92b243bc30895eb61c517a5 Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 26 Jul 2016 00:06:18 +0200 Subject: [PATCH] change key handling to avoid delays --- config/keyboard/desktop.kb | 6 +++--- src/fenrir-package/core/inputManager.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/keyboard/desktop.kb b/config/keyboard/desktop.kb index 8c392634..bfcb0fd2 100644 --- a/config/keyboard/desktop.kb +++ b/config/keyboard/desktop.kb @@ -10,7 +10,7 @@ 1-KEY_KP1=prev_char 1-KEY_KP3=next_char 1-KEY_KPDOT=exit_review -2-KEY_KP0,1-KEY_F2=toggle_braille_enable -2-KEY_KP0,1-KEY_F3=toggle_sound_enable -2-KEY_KP0,1-KEY_F4=toggle_speech_enable +1-KEY_KP0,1-KEY_F2=toggle_braille_enable +1-KEY_KP0,1-KEY_F3=toggle_sound_enable +1-KEY_KP0,1-KEY_F4=toggle_speech_enable #=toggle_output_enable diff --git a/src/fenrir-package/core/inputManager.py b/src/fenrir-package/core/inputManager.py index 4eb7e0cd..687f8bec 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.devices[fd].read(): if event.type == evdev.ecodes.EV_KEY: if event.value != 0: - environment['input']['currShortcut'][str(event.code)] = event.value + environment['input']['currShortcut'][str(event.code)] = 1 #event.value else: try: del(environment['input']['currShortcut'][str(event.code)])