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\
|
if self.controlMode and not self.switchCtrlModeOnce == 1 or\
|
||||||
not self.controlMode:
|
not self.controlMode:
|
||||||
isControlMode = self.handleControlMode(eventData)
|
isControlMode = self.handleControlMode(eventData)
|
||||||
|
|
||||||
|
isCommand = False
|
||||||
|
if self.controlMode and not self.switchCtrlModeOnce == 1 or\
|
||||||
|
not self.controlMode and self.switchCtrlModeOnce == 1:
|
||||||
shortcutData = convertedEscapeSequence
|
shortcutData = convertedEscapeSequence
|
||||||
if self.lastByteKey == convertedEscapeSequence:
|
if self.lastByteKey == convertedEscapeSequence:
|
||||||
if time.time() - self.lastInputTime <= self.env['runtime']['settingsManager'].getSettingAsFloat('keyboard','doubleTapTimeout'):
|
if time.time() - self.lastInputTime <= self.env['runtime']['settingsManager'].getSettingAsFloat('keyboard','doubleTapTimeout'):
|
||||||
self.repeat += 1
|
self.repeat += 1
|
||||||
shortcutData = shortcutData + convertedEscapeSequence
|
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)
|
isCommand = self.detectByteCommand(shortcutData)
|
||||||
if not isCommand:
|
if not isCommand:
|
||||||
isCommand = self.detectByteCommand(convertedEscapeSequence)
|
isCommand = self.detectByteCommand(convertedEscapeSequence)
|
||||||
|
Loading…
Reference in New Issue
Block a user