try to fix key stuck

This commit is contained in:
chrys 2018-06-03 23:16:12 +02:00
parent ea199e85c3
commit 0c02532dba

View File

@ -51,6 +51,8 @@ class inputManager():
def handleDeviceGrab(self): def handleDeviceGrab(self):
if not self.executeDeviceGrab: if not self.executeDeviceGrab:
return return
if self.env['input']['eventBuffer'] != []:
return
if not self.noKeyPressed(): if not self.noKeyPressed():
return return
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'): if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):