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):