From 4e4bf9768fea6782939411ef62c4da9b6e1ebccf Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 29 May 2018 22:54:36 +0200 Subject: [PATCH] respect modes --- src/fenrirscreenreader/core/byteManager.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/fenrirscreenreader/core/byteManager.py b/src/fenrirscreenreader/core/byteManager.py index 53354eee..e94704b9 100644 --- a/src/fenrirscreenreader/core/byteManager.py +++ b/src/fenrirscreenreader/core/byteManager.py @@ -45,14 +45,15 @@ class byteManager(): if self.controlMode and not self.switchCtrlModeOnce == 1 or\ not self.controlMode: isControlMode = self.handleControlMode(eventData) - 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: + 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 = self.detectByteCommand(shortcutData) if not isCommand: isCommand = self.detectByteCommand(convertedEscapeSequence)