Skip to content

feat: text selection in the on-screen keyboard - #134

Merged
nextestudios merged 1 commit into
mainfrom
feature/44-keyboard-selection
Sep 27, 2026
Merged

nextestudios merged 1 commit into
mainfrom
feature/44-keyboard-selection

Conversation

@nextestudios

Copy link
Copy Markdown
Owner

Summary

  • VirtualKeyboard now tracks a selection range (SelectionStart/SelectionLength, Select, SelectAll, initialSelection constructor argument). Typing replaces the selection (the length limit accounts for the replaced text; refused characters keep it), Backspace deletes it, ◀/▶ collapse it to the matching edge, LT/RT jump and drop it. Surrogate pairs are never split.
  • Select all key (Sel. tudo) on the … page; the language key there is now shorter (→ EN / → PT-BR) so every accent stays. Ctrl+A selects all on a physical keyboard.
  • Rename opens with the stem selected (example-file|.zip), so typing novo gives novo.zip.
  • The field highlights and underlines the selection (not color alone); Narrator hears "N de M caracteres selecionados".

Tests

  • CI (unit): selection replaced/deleted/collapsed, refused characters keep it, Select all from the … page via controller navigation, max length with replacement; rename journey now checks the acceptance criterion (example-file.zip → novo.zip, focus kept).
  • Manual (added to docs/TESTING.md): selection visible at 3 m and in 4K, Narrator announcement.

Closes #44

🤖 Generated with Claude Code

Select all on the … page (and Ctrl+A), typing replaces the selection,
Backspace deletes it and cursor keys collapse it. Rename opens with the
stem pre-selected so typing keeps the extension.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nextestudios
nextestudios merged commit 7a16653 into main Sep 27, 2026
1 check passed
@nextestudios
nextestudios deleted the feature/44-keyboard-selection branch September 27, 2026 04:33
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.

enhancement: add text selection to the virtual keyboard (select all, select stem)

1 participant