grab/ungrab on noKeyPressed()
This commit is contained in:
parent
ae612ce9f2
commit
30372f0440
@ -42,6 +42,8 @@ class screenManager():
|
|||||||
self.update(eventData, 'onScreenChange')
|
self.update(eventData, 'onScreenChange')
|
||||||
self.env['screen']['lastScreenUpdate'] = time.time()
|
self.env['screen']['lastScreenUpdate'] = time.time()
|
||||||
def handleDeviceGrab(self):
|
def handleDeviceGrab(self):
|
||||||
|
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
|
||||||
|
return
|
||||||
if self.getCurrScreenIgnored() != self.getPrevScreenIgnored():
|
if self.getCurrScreenIgnored() != self.getPrevScreenIgnored():
|
||||||
self.toggleDeviceGrab = True
|
self.toggleDeviceGrab = True
|
||||||
if self.toggleDeviceGrab:
|
if self.toggleDeviceGrab:
|
||||||
|
Loading…
Reference in New Issue
Block a user