be more aggressive

This commit is contained in:
Chrys 2019-10-04 23:27:50 +02:00
parent d084a11145
commit cda91a1ab6

View File

@ -63,7 +63,8 @@ class inputManager():
if self.ungrabAllDevices(): if self.ungrabAllDevices():
self.executeDeviceGrab = False self.executeDeviceGrab = False
else: else:
if self.grabAllDevices(): while not self.grabAllDevices():
time.sleep(0.2)
self.executeDeviceGrab = False self.executeDeviceGrab = False
def sendKeys(self, keyMacro): def sendKeys(self, keyMacro):
for e in keyMacro: for e in keyMacro:
@ -285,7 +286,6 @@ class inputManager():
keyName = keyName[4:] keyName = keyName[4:]
self.env['runtime']['outputManager'].presentText(_(keyName), interrupt=True) self.env['runtime']['outputManager'].presentText(_(keyName), interrupt=True)
def shortcutExists(self, shortcut): def shortcutExists(self, shortcut):
return(shortcut in self.env['bindings']) return(shortcut in self.env['bindings'])
def loadShortcuts(self, kbConfigPath=fenrirPath + '/../../config/keyboard/desktop.conf'): def loadShortcuts(self, kbConfigPath=fenrirPath + '/../../config/keyboard/desktop.conf'):