rename doubleTapDelay to doubleTapTimeout

This commit is contained in:
chrys 2016-10-13 00:35:03 +02:00
parent 1e1510dd54
commit 3c80e5c0a4
6 changed files with 6 additions and 6 deletions

View File

@ -93,7 +93,7 @@ wordEcho=False
# interrupt speech on any keypress
interruptOnKeyPress=False
# timeout for double tap in sec
doubleTapDelay=0.2
doubleTapTimeout=0.2
[general]
debugLevel=3

View File

@ -93,7 +93,7 @@ wordEcho=False
# interrupt speech on any keypress
interruptOnKeyPress=False
# timeout for double tap in sec
doubleTapDelay=0.2
doubleTapTimeout=0.2
[general]
debugLevel=1

View File

@ -91,7 +91,7 @@ wordEcho=True
# interrupt speech on any keypress
interruptOnKeyPress=False
# timeout for double tap in sec
doubleTapDelay=0.2
doubleTapTimeout=0.2
[general]
debugLevel=0

View File

@ -44,7 +44,7 @@ charDeleteEcho=True
wordEcho=False
interruptOnKeyPress=True
# timeout for double tap in sec
doubleTapDelay=0.2
doubleTapTimeout=0.2
[general]
debugLevel=0

View File

@ -51,7 +51,7 @@ class inputManager():
if len(self.env['input']['prevDeepestInput']) < len(self.env['input']['currInput']):
self.env['input']['prevDeepestInput'] = self.env['input']['currInput'].copy()
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
else:
self.env['input']['shortcutRepeat'] = 1

View File

@ -66,6 +66,6 @@ settings = {
'charDeleteEcho': True,
'wordEcho': True,
'interruptOnKeyPress': True,
'doubleTapDelay': 0.2,
'doubleTapTimeout': 0.2,
}
}