From cda91a1ab64d72a306672767cfd51468704620e0 Mon Sep 17 00:00:00 2001 From: Chrys Date: Fri, 4 Oct 2019 23:27:50 +0200 Subject: [PATCH] be more aggressive --- src/fenrirscreenreader/core/inputManager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'):