rename doubleTapDelay to doubleTapTimeout
This commit is contained in:
parent
1e1510dd54
commit
3c80e5c0a4
@ -93,7 +93,7 @@ wordEcho=False
|
|||||||
# interrupt speech on any keypress
|
# interrupt speech on any keypress
|
||||||
interruptOnKeyPress=False
|
interruptOnKeyPress=False
|
||||||
# timeout for double tap in sec
|
# timeout for double tap in sec
|
||||||
doubleTapDelay=0.2
|
doubleTapTimeout=0.2
|
||||||
|
|
||||||
[general]
|
[general]
|
||||||
debugLevel=3
|
debugLevel=3
|
||||||
|
@ -93,7 +93,7 @@ wordEcho=False
|
|||||||
# interrupt speech on any keypress
|
# interrupt speech on any keypress
|
||||||
interruptOnKeyPress=False
|
interruptOnKeyPress=False
|
||||||
# timeout for double tap in sec
|
# timeout for double tap in sec
|
||||||
doubleTapDelay=0.2
|
doubleTapTimeout=0.2
|
||||||
|
|
||||||
[general]
|
[general]
|
||||||
debugLevel=1
|
debugLevel=1
|
||||||
|
@ -91,7 +91,7 @@ wordEcho=True
|
|||||||
# interrupt speech on any keypress
|
# interrupt speech on any keypress
|
||||||
interruptOnKeyPress=False
|
interruptOnKeyPress=False
|
||||||
# timeout for double tap in sec
|
# timeout for double tap in sec
|
||||||
doubleTapDelay=0.2
|
doubleTapTimeout=0.2
|
||||||
|
|
||||||
[general]
|
[general]
|
||||||
debugLevel=0
|
debugLevel=0
|
||||||
|
@ -44,7 +44,7 @@ charDeleteEcho=True
|
|||||||
wordEcho=False
|
wordEcho=False
|
||||||
interruptOnKeyPress=True
|
interruptOnKeyPress=True
|
||||||
# timeout for double tap in sec
|
# timeout for double tap in sec
|
||||||
doubleTapDelay=0.2
|
doubleTapTimeout=0.2
|
||||||
|
|
||||||
[general]
|
[general]
|
||||||
debugLevel=0
|
debugLevel=0
|
||||||
|
@ -51,7 +51,7 @@ class inputManager():
|
|||||||
if len(self.env['input']['prevDeepestInput']) < len(self.env['input']['currInput']):
|
if len(self.env['input']['prevDeepestInput']) < len(self.env['input']['currInput']):
|
||||||
self.env['input']['prevDeepestInput'] = self.env['input']['currInput'].copy()
|
self.env['input']['prevDeepestInput'] = self.env['input']['currInput'].copy()
|
||||||
elif self.env['input']['prevDeepestInput'] == self.env['input']['currInput']:
|
elif self.env['input']['prevDeepestInput'] == self.env['input']['currInput']:
|
||||||
if time.time() - self.env['input']['lastInputTime'] <= self.env['runtime']['settingsManager'].getSettingAsFloat('keyboard','doubleTapDelay'):
|
if time.time() - self.env['input']['lastInputTime'] <= self.env['runtime']['settingsManager'].getSettingAsFloat('keyboard','doubleTapTimeout'):
|
||||||
self.env['input']['shortcutRepeat'] += 1
|
self.env['input']['shortcutRepeat'] += 1
|
||||||
else:
|
else:
|
||||||
self.env['input']['shortcutRepeat'] = 1
|
self.env['input']['shortcutRepeat'] = 1
|
||||||
|
@ -66,6 +66,6 @@ settings = {
|
|||||||
'charDeleteEcho': True,
|
'charDeleteEcho': True,
|
||||||
'wordEcho': True,
|
'wordEcho': True,
|
||||||
'interruptOnKeyPress': True,
|
'interruptOnKeyPress': True,
|
||||||
'doubleTapDelay': 0.2,
|
'doubleTapTimeout': 0.2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user