Repository navigation
feat: hold to repeat backspace and cursor keys on the on-screen keyboard - #112
Merged
Merged
Conversation
nextestudios
force-pushed
the
feature/42-keyboard-repeat
branch
5 times, most recently
from
September 27, 2026 02:52
6d7f331 to
cf5ca64
Compare
InputRouter takes a context repeat policy. While the keyboard is open, West (backspace), LB/RB (cursor) and South held on the focused backspace or cursor key repeat with the existing InputSettings timings; Done, Cancel and character keys never repeat. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nextestudios
force-pushed
the
feature/42-keyboard-repeat
branch
from
September 27, 2026 02:54
cf5ca64 to
d1ceb2e
Compare
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.
Summary
Holding an editing button on the on-screen keyboard now repeats, reusing the router's existing
InputSettingsdelay, interval and acceleration.InputRouter.RepeatPolicy: optional context rule, checked on every repeat (so a repeat stops as soon as the rule stops applying). Without a policy, only navigation repeats, as before.AppController.IsRepeatableInContext: navigation everywhere, plusVirtualKeyboard.IsRepeatablewhile a keyboard modal is open and not busy.VirtualKeyboard.IsRepeatable: West (backspace) and LB/RB (cursor) repeat. South repeats only when held on the⌫ ◀ ▶key it pressed; moving focus or any other action stops it. Done, Cancel and character keys never repeat.InputHostwires the policy into the router and uses it for OS key repeat too, so holding ←/→ moves the caret continuously while typing. Enter (Done) still never repeats.IsRepeatable()itself is unchanged, so Back/Confirm stay non-repeatable everywhere else.Tests
CI (Windows):
InputRouterdeletes many characters and stops on release. Holding South on⌫repeats, and holding it on a character types once.Confirm_fires_once_per_press_and_never_repeats, etc.) are unchanged.Manual (in
docs/TESTING.md): the hold behavior with a real controller.Closes #42
🤖 Generated with Claude Code