From 7cbc9ccf12b83893ef1c4413fa3fc2de8d0c70b0 Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 26 Mar 2018 09:10:05 +0200 Subject: [PATCH] cleanup --- src/fenrirscreenreader/core/inputDriver.py | 1 + src/fenrirscreenreader/inputDriver/debugDriver.py | 1 + src/fenrirscreenreader/inputDriver/evdevDriver.py | 1 + 3 files changed, 3 insertions(+) diff --git a/src/fenrirscreenreader/core/inputDriver.py b/src/fenrirscreenreader/core/inputDriver.py index 15a9e63e..ab91483e 100644 --- a/src/fenrirscreenreader/core/inputDriver.py +++ b/src/fenrirscreenreader/core/inputDriver.py @@ -11,6 +11,7 @@ class inputDriver(): self._initialized = False def initialize(self, environment): self.env = environment + self.env['runtime']['inputManager'].setShortcutType('KEY') self._isInitialized = True def shutdown(self): if self._initialized: diff --git a/src/fenrirscreenreader/inputDriver/debugDriver.py b/src/fenrirscreenreader/inputDriver/debugDriver.py index abea3c66..d825cb8b 100644 --- a/src/fenrirscreenreader/inputDriver/debugDriver.py +++ b/src/fenrirscreenreader/inputDriver/debugDriver.py @@ -14,6 +14,7 @@ class driver(inputDriver): def initialize(self, environment): self.env = environment + self.env['runtime']['inputManager'].setShortcutType('KEY') self._initialized = True print('Input Debug Driver: Initialized') diff --git a/src/fenrirscreenreader/inputDriver/evdevDriver.py b/src/fenrirscreenreader/inputDriver/evdevDriver.py index b847a301..99a972dc 100644 --- a/src/fenrirscreenreader/inputDriver/evdevDriver.py +++ b/src/fenrirscreenreader/inputDriver/evdevDriver.py @@ -44,6 +44,7 @@ class driver(inputDriver): self.watchDog = Value(c_bool, True) def initialize(self, environment): self.env = environment + self.env['runtime']['inputManager'].setShortcutType('KEY') global _evdevAvailable global _udevAvailable self._initialized = _evdevAvailable