From 30372f0440f1e666f98cb748772b63b434b37e83 Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 13 May 2018 23:43:35 +0200 Subject: [PATCH] grab/ungrab on noKeyPressed() --- src/fenrirscreenreader/core/screenManager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fenrirscreenreader/core/screenManager.py b/src/fenrirscreenreader/core/screenManager.py index e24a5978..77721549 100644 --- a/src/fenrirscreenreader/core/screenManager.py +++ b/src/fenrirscreenreader/core/screenManager.py @@ -42,6 +42,8 @@ class screenManager(): self.update(eventData, 'onScreenChange') self.env['screen']['lastScreenUpdate'] = time.time() def handleDeviceGrab(self): + if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'): + return if self.getCurrScreenIgnored() != self.getPrevScreenIgnored(): self.toggleDeviceGrab = True if self.toggleDeviceGrab: