respect modes
This commit is contained in:
parent
a53fe5cbb3
commit
4e4bf9768f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user