From bba3ed4eb78511bd564110897604eeaa6b8f1257 Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 25 Mar 2018 03:22:40 +0200 Subject: [PATCH] change correct toggle shortcuts --- src/fenrirscreenreader/core/fenrirManager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fenrirscreenreader/core/fenrirManager.py b/src/fenrirscreenreader/core/fenrirManager.py index 687e0ff0..fc23528f 100644 --- a/src/fenrirscreenreader/core/fenrirManager.py +++ b/src/fenrirscreenreader/core/fenrirManager.py @@ -90,10 +90,13 @@ class fenrirManager(): return if event['Data'] == b'': return + self.handleControlMode(event['Data']) + if self.controlMode and not self.switchCtrlModeOnce == 1 or\ not self.controlMode and self.switchCtrlModeOnce == 1: self.detectByteCommand(event['Data']) + def handleControlMode(self, escapeSequence): if self.switchCtrlModeOnce > 0: self.switchCtrlModeOnce -= 1