change correct toggle shortcuts

This commit is contained in:
chrys 2018-03-25 03:08:19 +02:00
parent 109c5d19ef
commit db9b16dec0

View File

@ -95,10 +95,11 @@ class fenrirManager():
not self.controlMode and self.switchCtrlModeOnce == 1:
self.detectByteCommand(event['Data'])
def handleControlMode(self, escapeSequence):
if self.switchCtrlModeOnce > 1:
self.switchCtrlModeOnce -= 1
if escapeSequence == b'a':
if escapeSequence == b'\x1bR':
self.controlMode = not self.controlMode
if escapeSequence == b'b':
if escapeSequence == b'\x1b:':
self.switchCtrlModeOnce = 2
def handleExecuteCommand(self, event):