be more aggressive

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

View File

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