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):