From db9b16dec03e1c9eb68d82d587f034c385c6fcfd Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 25 Mar 2018 03:08:19 +0200 Subject: [PATCH] change correct toggle shortcuts --- src/fenrirscreenreader/core/fenrirManager.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fenrirscreenreader/core/fenrirManager.py b/src/fenrirscreenreader/core/fenrirManager.py index ffe58da3..ba4ddd76 100644 --- a/src/fenrirscreenreader/core/fenrirManager.py +++ b/src/fenrirscreenreader/core/fenrirManager.py @@ -95,10 +95,11 @@ class fenrirManager(): not self.controlMode and self.switchCtrlModeOnce == 1: self.detectByteCommand(event['Data']) def handleControlMode(self, escapeSequence): - self.switchCtrlModeOnce -= 1 - if escapeSequence == b'a': + if self.switchCtrlModeOnce > 1: + self.switchCtrlModeOnce -= 1 + if escapeSequence == b'\x1bR': self.controlMode = not self.controlMode - if escapeSequence == b'b': + if escapeSequence == b'\x1b:': self.switchCtrlModeOnce = 2 def handleExecuteCommand(self, event):