mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
"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.
|
||
| .. | ||
| src | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||