diff --git a/src/fenrirscreenreader/core/inputManager.py b/src/fenrirscreenreader/core/inputManager.py index 5c2ed531..013f5336 100644 --- a/src/fenrirscreenreader/core/inputManager.py +++ b/src/fenrirscreenreader/core/inputManager.py @@ -63,8 +63,9 @@ class inputManager(): if self.ungrabAllDevices(): self.executeDeviceGrab = False else: - if self.grabAllDevices(): - self.executeDeviceGrab = False + while not self.grabAllDevices(): + time.sleep(0.2) + self.executeDeviceGrab = False def sendKeys(self, keyMacro): for e in keyMacro: key = '' @@ -285,7 +286,6 @@ class inputManager(): keyName = keyName[4:] self.env['runtime']['outputManager'].presentText(_(keyName), interrupt=True) - def shortcutExists(self, shortcut): return(shortcut in self.env['bindings']) def loadShortcuts(self, kbConfigPath=fenrirPath + '/../../config/keyboard/desktop.conf'):