fix shutup onInput, make shutup filterable
This commit is contained in:
parent
94dd683ef4
commit
b9aabcf0b3
@ -92,6 +92,8 @@ charDeleteEcho=True
|
|||||||
wordEcho=True
|
wordEcho=True
|
||||||
# interrupt speech on any keypress
|
# interrupt speech on any keypress
|
||||||
interruptOnKeyPress=True
|
interruptOnKeyPress=True
|
||||||
|
# you can filter the keys on that the speech should interrupt (empty = all keys, otherwhise the given keys)
|
||||||
|
interruptOnKeyPressFilter=
|
||||||
# timeout for double tap in sec
|
# timeout for double tap in sec
|
||||||
doubleTapTimeout=0.2
|
doubleTapTimeout=0.2
|
||||||
|
|
||||||
|
@ -93,6 +93,8 @@ charDeleteEcho=True
|
|||||||
wordEcho=False
|
wordEcho=False
|
||||||
# interrupt speech on any keypress
|
# interrupt speech on any keypress
|
||||||
interruptOnKeyPress=False
|
interruptOnKeyPress=False
|
||||||
|
# you can filter the keys on that the speech should interrupt (empty = all keys, otherwhise the given keys)
|
||||||
|
interruptOnKeyPressFilter=
|
||||||
# timeout for double tap in sec
|
# timeout for double tap in sec
|
||||||
doubleTapTimeout=0.2
|
doubleTapTimeout=0.2
|
||||||
|
|
||||||
|
@ -92,6 +92,8 @@ charDeleteEcho=True
|
|||||||
wordEcho=False
|
wordEcho=False
|
||||||
# interrupt speech on any keypress
|
# interrupt speech on any keypress
|
||||||
interruptOnKeyPress=False
|
interruptOnKeyPress=False
|
||||||
|
# you can filter the keys on that the speech should interrupt (empty = all keys, otherwhise the given keys)
|
||||||
|
interruptOnKeyPressFilter=
|
||||||
# timeout for double tap in sec
|
# timeout for double tap in sec
|
||||||
doubleTapTimeout=0.2
|
doubleTapTimeout=0.2
|
||||||
|
|
||||||
|
@ -43,6 +43,8 @@ charEcho=False
|
|||||||
charDeleteEcho=True
|
charDeleteEcho=True
|
||||||
wordEcho=False
|
wordEcho=False
|
||||||
interruptOnKeyPress=True
|
interruptOnKeyPress=True
|
||||||
|
# you can filter the keys on that the speech should interrupt (empty = all keys, otherwhise the given keys)
|
||||||
|
interruptOnKeyPressFilter=
|
||||||
# timeout for double tap in sec
|
# timeout for double tap in sec
|
||||||
doubleTapTimeout=0.2
|
doubleTapTimeout=0.2
|
||||||
|
|
||||||
|
@ -23,7 +23,13 @@ class command():
|
|||||||
return
|
return
|
||||||
if len(self.env['input']['prevDeepestInput']) > len(self.env['input']['currInput']):
|
if len(self.env['input']['prevDeepestInput']) > len(self.env['input']['currInput']):
|
||||||
return
|
return
|
||||||
if self.environment['runtime']['screenManager'].isScreenChange():
|
if len(self.env['input']['currInput']) != 1:
|
||||||
|
return
|
||||||
|
# if the filter is set
|
||||||
|
if self.env['runtime']['settingsManager'].getSetting('keyboard', 'interruptOnKeyPressFilter').strip() != '':
|
||||||
|
if not self.env['input']['currInput'][0] in self.env['runtime']['settingsManager'].getSetting('keyboard', 'interruptOnKeyPressFilter').split(','):
|
||||||
|
return
|
||||||
|
if self.env['runtime']['screenManager'].isScreenChange():
|
||||||
return
|
return
|
||||||
self.env['runtime']['outputManager'].interruptOutput()
|
self.env['runtime']['outputManager'].interruptOutput()
|
||||||
|
|
||||||
|
@ -87,6 +87,7 @@ settings = {
|
|||||||
'charDeleteEcho': True,
|
'charDeleteEcho': True,
|
||||||
'wordEcho': True,
|
'wordEcho': True,
|
||||||
'interruptOnKeyPress': True,
|
'interruptOnKeyPress': True,
|
||||||
|
'interruptOnKeyPressFilter': '',
|
||||||
'doubleTapTimeout': 0.2,
|
'doubleTapTimeout': 0.2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user