mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 14:02:44 +00:00
fix excessive delay on spacebar long press
This commit is contained in:
parent
6c6c24ca84
commit
ca808ef0bd
2 changed files with 1 additions and 5 deletions
|
@ -1193,10 +1193,6 @@ public final class PointerTracker implements PointerTrackerQueue.Element,
|
||||||
// We use longer timeout for sliding finger input started from the modifier key.
|
// We use longer timeout for sliding finger input started from the modifier key.
|
||||||
return longpressTimeout * MULTIPLIER_FOR_LONG_PRESS_TIMEOUT_IN_SLIDING_INPUT;
|
return longpressTimeout * MULTIPLIER_FOR_LONG_PRESS_TIMEOUT_IN_SLIDING_INPUT;
|
||||||
}
|
}
|
||||||
if (code == Constants.CODE_SPACE) {
|
|
||||||
// Cursor can be moved in space
|
|
||||||
return longpressTimeout * MULTIPLIER_FOR_LONG_PRESS_TIMEOUT_IN_SLIDING_INPUT;
|
|
||||||
}
|
|
||||||
return longpressTimeout;
|
return longpressTimeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
android:defaultValue="false" />
|
android:defaultValue="false" />
|
||||||
<CheckBoxPreference
|
<CheckBoxPreference
|
||||||
android:key="pref_show_language_switch_key"
|
android:key="pref_show_language_switch_key"
|
||||||
android:title="Show language switch key"
|
android:title="@string/show_language_switch_key"
|
||||||
android:defaultValue="false"
|
android:defaultValue="false"
|
||||||
android:persistent="true" />
|
android:persistent="true" />
|
||||||
<CheckBoxPreference
|
<CheckBoxPreference
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue