Repository navigation
Conversation
A tester asked to keep the space bar's hold for moving the cursor: today a still hold opens the dictation-language menu and ends the press, so hold then slide never moves the cursor. With the new lab on, a still hold for Android's touch-and-hold delay turns the space bar into a trackpad (a click says it took), one character per 12.6 dp from where the finger was held, as iPhone Hex's trackpad, and lifting types nothing whether or not it moved. Taps and plain slides are unchanged. The language stays in the Hex menu's Language page, and TalkBack's long click on the space bar still opens it. Off (the default), holding opens the menu exactly as before. Verified: :app:testDebugUnitTest (400 tests, including the new aHeldSpaceBarMovesTheCursorFromWhereItWasHeldAndTypesNothing) and the release build's R8 step pass; on an API 36 emulator, hold-slide moved the cursor, hold-release typed nothing, a tap typed a space, and with the lab off the hold opened the language menu.
A tester asked to adjust how long a long press takes. Letter holds used a fixed 300 ms and the space bar Android's touch-and-hold delay. The new Labs › Keyboard › Hold delay row offers Short (200 ms), Default (300 ms) and Long (500 ms), inside Gboard's Key long press delay slider (100 to 700 ms, 300 default). Default is today's timing exactly, so it is the lab off. The space bar keeps Android's delay at Default and is scaled by the same share otherwise (400 ms becomes 266 or 666 ms), so it always waits longer than a letter. Pop-ups, haptics and Delete's repeat are unchanged. Verified: :app:testDebugUnitTest (400 tests, including the new holdDelayDefaultKeepsTodaysTimingAndTheSpaceBarScales) and the release build's R8 step pass; on an API 36 emulator a held e showed its accents at 240 ms only with Short, at 350 ms with Default but not Long, and a 520 ms space hold opened the language menu with Short and Default but not Long.
added 3 commits
November 28, 2026 18:12
dev pruned the Android feature-map tree from docs/features/README.md (#2979), so that file takes dev's version; the lab's row in android/README.md is kept before **Keyboard › Spatial autocorrect**, and the HexSettings and TypingPreferences conflicts keep both sides' rows (Delete words when held, then Hold space to move the cursor).
Conflicts are adjacent additions: the Page list and its Labs parent keep Hold delays and Sounds; the Labs card keeps Delete words when held, then Hold delay; the page switch keeps both cards. dev's reworked hold in typesOnLift is kept (talks, flick and Click when a hold opens) with its delay now read from TypingPreferences.holdDelay; docs/features/README.md takes dev's pruned version (#2979) and the lab's row in android/README.md is kept.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From a Hex Preview tester's feedback that Ryan tagged: "please allow me to adjust the duration of a long press".
What changes
New row, Labs › Keyboard › Hold delay, with three steps. Default is exactly today's timing, so the lab is off until someone picks another step.
KeyboardMetrics.HOLD_MS)Where the values come from:
Pop-ups, haptics, the release tick and Delete's repeat are unchanged. With Labs › Hold space to move the cursor (#2963) the same space-bar delay starts the trackpad.
Wording for Ryan to approve
The row shows the chosen step and opens a list like Key colors › Color.
Checks
:app:testDebugUnitTest: 400 tests pass, including the newholdDelayDefaultKeepsTodaysTimingAndTheSpaceBarScales(InsertionTest.kt): Default equalsHOLD_MSand leaves any system delay as is, unknown or missing values read as Default, and every step's space-bar delay stays above its letter delay.:app:minifyReleaseWithR8passes.Notes
postDelayedline as Android: Labs › Hold space to move the cursor #2963; whichever merges second needs a one-line rebase (keep Android: Labs › Hold space to move the cursor #2963'sholdSpacename, with this PR's delay).android/README.mdanddocs/features/README.mdupdated.