hex/android/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel d8af064904 android: correct a word when its mark comes from the ?123 page
"teh" then ?123 › "?" typed "Teh?": the ?123 key (KeyboardEngine.mode)
called resetTyping() and cleared the strip, so the word in progress was
dropped before the symbol page opened, and type() refused to correct
anything while symbols were up. Gboard and iPhone Hex both correct it
("the?"; iOS AutocorrectEngineTests "adn" 123 "," -> "and,").

Changed:
- mode() keeps a word still being typed (its token still right before
  the cursor) across ?123 and ABC and redraws its strip there, as Gboard
  does. With no word in progress it resets and clears as before.
- type() corrects on a word-ending mark on the symbol pages too, by the
  letters page's own rule (TypingWord.endsWord: , . ! ? ; : ) " and the
  smart ”, iPhone Hex's wordEnders). Number, phone and date pads still
  never correct (the !symbols guard became pad == null).
- pickSuggestion() takes a tapped word on the symbol page while a word
  is in progress, since its strip now shows there.

Removed: the ?123 key no longer throws away the word being typed and its
strip. Nothing else changes: digits, ' @ _ - / # still end the tracked
word without a correction (type()'s existing path), a swiped word still
takes "?" against it with no correction (its token is already empty, so
mode() resets as before), password fields have no word, no-suggestion
fields and #2603's stand-in languages still never autocorrect, and Delete
after a mark behaves as after a letters-page mark (it deletes the mark;
only space corrections record an undo). ] and } don't end a word on
either page or on iOS, unchanged.

Verified on the Mac Studio: ./gradlew :app:testDebugUnitTest (all
green, new cases NeverSuggestTest.aClosingMarkFromTheSymbolPageCorrectsAsOnTheLetters
and a mark case in StandInTypingTest), assembleDebug, assemblePreview.
The engine itself has no JVM harness (TypingPreferences needs a Context,
Handler a Looper), so the ?123 sequence is left for the emulator check.
2026-11-24 09:22:13 -05:00
..
src android: correct a word when its mark comes from the ?123 page 2026-11-24 09:22:13 -05:00
build.gradle.kts android: password manager suggestions in the strip (labs) (#2695) 2026-11-24 09:10:42 -05:00
proguard-rules.pro Hex for Android: on-device dictation keyboard (#2074) 2026-11-20 17:27:17 +00:00