From cb596e8f60deeb24a9c74d8e242a97b7d68b9eae Mon Sep 17 00:00:00 2001 From: chrys87 Date: Wed, 23 May 2018 15:15:57 +0200 Subject: [PATCH] Update inputManager.py --- src/fenrirscreenreader/core/inputManager.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/core/inputManager.py b/src/fenrirscreenreader/core/inputManager.py index d0417459..d51c16f9 100644 --- a/src/fenrirscreenreader/core/inputManager.py +++ b/src/fenrirscreenreader/core/inputManager.py @@ -40,7 +40,12 @@ class inputManager(): self.removeAllDevices() self.env['runtime']['settingsManager'].shutdownDriver('inputDriver') def getInputEvent(self): - return self.env['runtime']['inputDriver'].getInputEvent() + event = None + try: + event = self.env['runtime']['inputDriver'].getInputEvent() + except: + pass + return event def setExecuteDeviceGrab(self, newExecuteDeviceGrab = True): self.executeDeviceGrab = newExecuteDeviceGrab def handleDeviceGrab(self):