respect modes

This commit is contained in:
chrys 2018-05-29 22:54:36 +02:00
parent a53fe5cbb3
commit 4e4bf9768f

View File

@ -45,14 +45,15 @@ class byteManager():
if self.controlMode and not self.switchCtrlModeOnce == 1 or\
not self.controlMode:
isControlMode = self.handleControlMode(eventData)
isCommand = False
if self.controlMode and not self.switchCtrlModeOnce == 1 or\
not self.controlMode and self.switchCtrlModeOnce == 1:
shortcutData = convertedEscapeSequence
if self.lastByteKey == convertedEscapeSequence:
if time.time() - self.lastInputTime <= self.env['runtime']['settingsManager'].getSettingAsFloat('keyboard','doubleTapTimeout'):
self.repeat += 1
shortcutData = shortcutData + convertedEscapeSequence
isCommand = False
if self.controlMode and not self.switchCtrlModeOnce == 1 or\
not self.controlMode and self.switchCtrlModeOnce == 1:
isCommand = self.detectByteCommand(shortcutData)
if not isCommand:
isCommand = self.detectByteCommand(convertedEscapeSequence)