hex/android/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 6a13d2e09e android: swipe typing and suggestions in URL and web-search fields
Chrome's address bar (inputType 0x80011: TEXT | VARIATION_URI | NO_SUGGESTIONS),
an incognito tab's address bar and plain URL fields typed literally: FieldTyping
treated TYPE_TEXT_VARIATION_URI like email, so the strip showed no suggestions and
a swipe typed nothing. Gboard offers both there.

What changed
- FieldTyping: a URI field is now a word field (suggestions, next words, swipes)
  that never corrects, plus a new `exact` flag for it. Email
  (EMAIL_ADDRESS, WEB_EMAIL_ADDRESS) and password fields stay literal as before;
  languages without a typing model still have no swipe (unchanged).
- KeyboardEngine, in an exact (URL) field: no autocorrection or highlighted fix
  (corrects is off), and nothing typed is changed behind your back: no
  double-space period, no text replacement on space or punctuation, no tap
  (nearby-letter) correction.
- Spacing: a tapped suggestion goes in with a space, as Gboard's does in
  Chrome's omnibox (measured: "tea" + tap "tea" gives "tea "). Any joining mark
  typed next (. / - and the other SpaceRules.JOINERS) takes that space in a URL
  field, so "github" + pick + "." or "/" gives "github." / "github/", never
  "github /" (new SpaceRules.takesPickedSpace; elsewhere only clause marks do,
  as before). Swipes keep Hex's existing spacing: a space before the next
  swiped word, never a trailing space. Gboard's swipe spacing in the omnibox
  was not measured (injected strokes don't register as glides on the emulator).
- README's field-kind paragraph says so.

Removed behaviour: URI fields no longer type literally with an empty strip and
no swipe.

Verified on the Mac Studio (JDK 21): ./gradlew :app:testDebugUnitTest
:app:assembleDebug :app:assemblePreview green. FieldTypingTest: URI and
Chrome's omnibox (normal and incognito) read words, don't correct, are exact;
email/password unchanged. InsertionTest: takesPickedSpace for clause marks and
URL joiners. Not tried on a device or emulator.
2026-11-24 09:32:05 -05:00
..
src android: swipe typing and suggestions in URL and web-search fields 2026-11-24 09:32:05 -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