Skip to content

android: click when a hold opens (labs) (#3006) - #3013

Merged
opencodejr[bot] merged 1 commit into
devfrom
agent/issue-3006
Nov 28, 2026
Merged

opencodejr[bot] merged 1 commit into
devfrom
agent/issue-3006

Conversation

@opencodejr

@opencodejr opencodejr Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Adds Labs › Keyboard › Click when a hold opens (off by default), requested in #3006 by @dgunay. I wrote this myself from the issue; no code was copied from the fork.

What changes

  • Click on open: when the hold timer in KeyPlaneView.typesOnLift opens a key's held symbols or accents, it plays Tap.Press if both the lab and Haptics are on. With Haptics off nothing plays, and the Diagnostics "stopped" count doesn't change. If the finger has already left the key, the options don't open and nothing plays.
  • Unaffected keys: the Hex key and the space bar use their own hold handling, so they don't change.
  • Setting: new TypingPreferences.holdClick (holdClick key, default false) and a toggle in Labs › Keyboard after Space after punctuation.
  • Strings: English and zh-rCN, the same as the last keyboard labs.
  • Docs: a new paragraph in the Labs › Keyboard section of android/README.md.
  • Flick case: the flick-opens-immediately path in the issue doesn't exist on dev; the timer is the only place the options open. If Android: Labs › Hold delay #2964 adds that path, it needs the same check.

Testing

  • python3 scripts/code-shape.py --check passes.
  • Not compiled or run: no JDK or Android SDK was available, so no Gradle build or unit tests. Please build and try it on a device before merging.
  • No new test: the change is a vibration inside a touch-timer callback.
  • Nothing under ios/ touched.

Closes #3006

@opencodejr
opencodejr Bot merged commit 2f15940 into dev Nov 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android keyboard: haptic click when a held key's symbols appear

0 participants