add sounds for bypass
This commit is contained in:
parent
28fcdf0f32
commit
42c2c6a562
@ -1,6 +1,8 @@
|
|||||||
# Screen Reader Turned On or Off
|
# Screen Reader Turned On or Off
|
||||||
ScreenReaderOn='ScreenReaderOn.wav'
|
ScreenReaderOn='ScreenReaderOn.wav'
|
||||||
ScreenReaderOff='ScreenReaderOff.wav'
|
ScreenReaderOff='ScreenReaderOff.wav'
|
||||||
|
# PTY bypass
|
||||||
|
PTYBypass='PTYBypass.wav'
|
||||||
# Cancel the current command
|
# Cancel the current command
|
||||||
Cancel='Cancel.wav'
|
Cancel='Cancel.wav'
|
||||||
# Accept command
|
# Accept command
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
# Screen Reader Turned On or Off
|
# Screen Reader Turned On or Off
|
||||||
ScreenReaderOn=''
|
ScreenReaderOn=''
|
||||||
ScreenReaderOff=''
|
ScreenReaderOff=''
|
||||||
|
# PTY bypass
|
||||||
|
PTYBypass=''
|
||||||
# Cancel the current command
|
# Cancel the current command
|
||||||
Cancel=''
|
Cancel=''
|
||||||
# Accept command
|
# Accept command
|
||||||
|
@ -103,8 +103,13 @@ class fenrirManager():
|
|||||||
if escapeSequence in [b'\x1bR', b'^[R']:
|
if escapeSequence in [b'\x1bR', b'^[R']:
|
||||||
self.controlMode = not self.controlMode
|
self.controlMode = not self.controlMode
|
||||||
self.switchCtrlModeOnce = 0
|
self.switchCtrlModeOnce = 0
|
||||||
|
if self.controlMode:
|
||||||
|
self.environment['runtime']['outputManager'].presentText(_('Sticky Mode On'), soundIcon='Accept', interrupt=True, flush=True)
|
||||||
|
else:
|
||||||
|
self.environment['runtime']['outputManager'].presentText(_('Sticky Mode On'), soundIcon='Accept', interrupt=True, flush=True)
|
||||||
if escapeSequence in [b'\x1b:', b'^[:']:
|
if escapeSequence in [b'\x1b:', b'^[:']:
|
||||||
self.switchCtrlModeOnce = 2
|
self.switchCtrlModeOnce = 2
|
||||||
|
self.environment['runtime']['outputManager'].presentText(_('bypass'), soundIcon='PTYBypass', interrupt=True, flush=True)
|
||||||
|
|
||||||
def handleExecuteCommand(self, event):
|
def handleExecuteCommand(self, event):
|
||||||
if event['Data'] == '':
|
if event['Data'] == '':
|
||||||
|
Loading…
Reference in New Issue
Block a user