Change click_interval default to -1.0 and add help text for negative click_interval values

This commit is contained in:
Luflosi
2018-10-27 17:55:16 +02:00
parent 09183772d3
commit 09daaf1ec3

View File

@@ -399,16 +399,9 @@ Characters considered part of a word when double clicking. In addition to these
any character that is marked as an alpha-numeric character in the unicode any character that is marked as an alpha-numeric character in the unicode
database will be matched.''')) database will be matched.'''))
o('click_interval', -1.0, option_type=float, long_text=_('''
def click_interval(x): The interval between successive clicks to detect double/triple clicks (in seconds).
if x == 'system': Negative numbers will use the system default instead, if available or fallback to 0.5.'''))
return -1.0
return positive_float(x)
o('click_interval', 'system', option_type=click_interval, long_text=_('''
The interval between successive clicks to detect
double/triple clicks (in seconds)'''))
o('mouse_hide_wait', 3.0, option_type=positive_float, long_text=_(''' o('mouse_hide_wait', 3.0, option_type=positive_float, long_text=_('''
Hide mouse cursor after the specified number of seconds Hide mouse cursor after the specified number of seconds