hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 83717ce6a2
iOS: remove and add dictation languages from the keyboard, and a space-bar cursor on the Dictation bar (#2180)
* iOS: remove and add dictation languages right in the keyboard

A TestFlight tester (build 56, iPhone 17 Pro, iOS 26.7.2) couldn't take a
recognition language off the keyboard's switch, and a new one only showed up
after picking it in Hex.

- A long press on a language (a dictation bar chip, or a row on the Hex key
  menu's Language page) shows Remove. Removing takes it out of the recents and
  keeps it off while it is one of the iPhone's own languages
  (settings.dictationLanguage.removed); the one set goes back to Automatic.
  Picking it again brings it back.
- Settings › Dictation language has Remove from keyboard for the same list.
- More languages… lists every other language Apple Speech has, the iPhone's
  preferred ones (and their other regions) first, then the rest by name.
  Picking one adds it. In the dictation bar the list takes the keys' place;
  on the Hex key menu it is a scrolling page.
- The switch now shows while More languages has anything, so removing every
  language never hides the way to add one back.
- Automatic is unchanged and still follows the keyboard's language (#2164).
- zh-Hans for Auto, More languages…, Remove and Remove from keyboard.

DictationLanguageSwitch.choices takes a removed list (the one set always
shows); LanguageSettings.keyboardLanguageChoices builds the list for the
keyboard and Settings alike.

Verified: xcodebuild test on an iPhone 17 Pro simulator (iOS 26.4), 517 tests,
0 failures, including two new cases in KeyboardBridgeTests. Live in the
simulator's real HEXKeyboard with AXe: removed and added languages from the
dictation bar, the full keyboard's Hex key menu and Settings, checking the App
Group each time; snapshot scenes in English and Chinese, light and dark.

* iOS: the dictation bar's space bar moves the cursor

A TestFlight tester (build 56) found that long-pressing space on the
Dictation bar keyboard couldn't drag the cursor, as the full keyboard's and
Apple's can.

The bar's space key (KeyboardSurface's TrackpadSpaceKey, replacing its
Button) is now the full keyboard's trackpad, with FullKeyboardEngine's own
constants: a hold of trackpadHoldDelay (0.35 s since #2178) or a slide of
trackpadActivationDistance (10 pt) starts it, and each
trackpadPointsPerCharacter (7.5 pt) moves the cursor a character through
adjustTextPosition, with a selection haptic per step (Settings › Keyboard ›
Haptics, Full Access) and a "cursor" typing-log line. The bar's glyphs blank
while it slides, as the full keyboard's do: a 0.12 s fade, at once under
Reduce Motion. Letting go of a trackpad types nothing; a tap still types a
space, and a cancelled touch types nothing. VoiceOver still activates it as a
button that types a space.

Verified: xcodebuild test on an iPhone 17 Pro simulator (iOS 26.4), all
passing. Live in the simulator's HEXKeyboard with AXe on "Running 10 min
late, ": a tap typed a space; a slide moved the cursor left (a comma then
landed after "min") with no space typed; a 0.9 s hold then a slide moved it
right; the screenshot mid-slide shows the blank keys.
2026-11-21 07:40:24 -05:00
..
Fixtures iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AutocorrectEngineTests.swift iOS: text replacements fire like the system's and stay put, and no stray capitals from suggestions (#2173) 2026-11-21 06:10:45 -05:00
CleanupTaggerTests.swift iOS: Clean up what I say keeps names, and is on by default (#2132) 2026-11-21 03:12:53 +00:00
CustomVocabularyTests.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationControllerTests.swift iOS: dictation picks the car's mic in CarPlay, and a warm session never holds call audio (#2179) 2026-11-21 07:21:46 -05:00
DictationLearningTests.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DotScopeTests.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
EmojiSuggesterTests.swift iOS: the full keyboard matches the system keyboard one to one (#2178) 2026-11-21 07:20:46 -05:00
FullKeyboardEngineTests.swift iOS: the full keyboard matches the system keyboard one to one (#2178) 2026-11-21 07:20:46 -05:00
HexKeyGestureTests.swift iOS: translation says when it pastes as spoken, retries, and never turns itself off (#2176) 2026-11-21 06:33:37 -05:00
KeyboardBridgeTests.swift iOS: remove and add dictation languages from the keyboard, and a space-bar cursor on the Dictation bar (#2180) 2026-11-21 07:40:24 -05:00
KeyboardLayoutTests.swift iOS: the full keyboard matches the system keyboard one to one (#2178) 2026-11-21 07:20:46 -05:00
ShiftStateMachineTests.swift iOS: full keyboard experiment flag, key layout and shift model (#910) 2026-11-01 12:43:35 -08:00
SwipeDecoderTests.swift iOS: swipe typing for English and Spanish (Experiment, off by default) (#2106) 2026-11-20 22:30:53 +00:00
TranscriptCleanupTests.swift iOS: translation says when it pastes as spoken, retries, and never turns itself off (#2176) 2026-11-21 06:33:37 -05:00
TypingLogTests.swift iOS: opaque keyboard panel so stale system layers can't show through, and a nil-safe field ID (#2139) 2026-11-21 03:45:47 +00:00