hex/ios/HEXKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel b5fa4bd5a6
iOS: Return follows the app's return key type, and the dictation bar's does too (#2200)
Testers said many apps give Hex no Enter/Send key. The full keyboard always had
a Return key, but some of its types didn't match Apple's. The dictation bar's
Return was always a plain ↵, even in send, go and search fields, and it ignored
enablesReturnKeyAutomatically. So in those fields the bar never looked like it
could send.

What changed
- New ReturnKeyStyle (HEXShared/FullKeyboard/ReturnKeyStyle.swift): the symbol,
  the blue action style and the accessibility label for each UIReturnKeyType, as
  observed on Apple's iOS 27.2 keyboard (black box: simulator screenshots and
  axe describe-ui in a throwaway host app, one field per type).
  send ↑, go/join/route →, search/google/yahoo magnifier, done ✓ and emergency
  call (phone) are blue; return ↵, next and continue › are plain keys.
- Full keyboard: uses ReturnKeyStyle. Fixes: next showed ↵ (now ›), continue was
  a blue → (now a plain ›), and emergency call drew the text "SOS" (now a blue
  phone symbol, like Apple's). The unused text-label path (returnLabel) is
  removed.
- Off return key (enablesReturnKeyAutomatically and an empty field) now looks
  like Apple's: the glyph at 10% of the label colour, on a grey key
  (191,192,197; white 0.39 on dark) for the acting types, instead of the darker
  muted grey.
- Dictation bar: its Return key uses the same style (blue send/go/search,
  disabled while the host asks and the field is empty) and still inserts "\n".
  Its accessibility label comes from ReturnKeyStyle; "SOS" becomes "Emergency
  call".
- New zh-Hans strings: Return, Send, Go, Join, Route, Search, Next, Emergency
  call (Done and Continue already existed).

Why some apps had no Enter/send: on the full keyboard, Return is present for
every text keyboard type. Number pads hand off to Apple's keypad, which has no
Return either. Apps such as Messages use the default return type and send from
their own button, and Apple's keyboard also shows ↵ there. The gap was the
dictation bar's Return, which was always a grey ↵.

Verified (Mac Studio, iPhone 17 Pro sim, iOS 27.2)
- Apple vs Hex screenshots for every UIReturnKeyType, light and dark, plus
  empty fields with enablesReturnKeyAutomatically: the full keyboard matches.
- Dictation bar, live in a host app: send, go, search, next and emergency call
  styles shown. Send is grey and ignores taps in an empty field, turns blue
  after "," is typed, turns grey again after delete, and a tap reaches the host
  (textFieldShouldReturn counted once).
- Generic iOS build (CODE_SIGNING_ALLOWED=NO) succeeded; xcodebuild test: 581
  tests, 0 failures, 1 skipped.
2026-11-21 09:54:57 -05:00
..
CleanupTagger iOS: clean up what I say with an on-device tagger (experiment) (#2023) 2026-11-20 01:29:41 +00:00
TypingModel iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
ContainingAppOpener.swift Open Hex from the iPhone keyboard and show live keyboard setup (#599) 2026-10-31 09:56:02 -07:00
HEXKeyboard.entitlements Set up Hex Mobile internal TestFlight releases (#1997) 2026-11-19 11:48:49 -05:00
Info.plist iOS: plain permission prompts and no pre-prompt Allow button, for App Review (#2058) 2026-11-20 16:13:36 +00:00
KeyboardInputView.swift iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
KeyboardLocalDictation.swift iOS: spoken punctuation in dictation (#2198) 2026-11-21 09:31:47 -05:00
KeyboardViewController.swift iOS: Return follows the app's return key type, and the dictation bar's does too (#2200) 2026-11-21 09:54:57 -05:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00