change correct toggle shortcuts

This commit is contained in:
chrys 2018-03-25 03:17:57 +02:00
parent 666941af15
commit 8c601ae7c0

View File

@ -97,9 +97,10 @@ class fenrirManager():
def handleControlMode(self, escapeSequence): def handleControlMode(self, escapeSequence):
if self.switchCtrlModeOnce > 1: if self.switchCtrlModeOnce > 1:
self.switchCtrlModeOnce -= 1 self.switchCtrlModeOnce -= 1
if escapeSequence == b'\x1bR': if escapeSequence in [b'\x1bR', b'^[R']:
self.controlMode = not self.controlMode self.controlMode = not self.controlMode
if escapeSequence == b'\x1b:': self.switchCtrlModeOnce = 0
if escapeSequence in [b'\x1b:', b'^[:']:
self.switchCtrlModeOnce = 2 self.switchCtrlModeOnce = 2
def handleExecuteCommand(self, event): def handleExecuteCommand(self, event):