hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 4aa8418bfe
iOS keyboard: hold lists re-derived from the system keyboard by observation (#2140)
What: every language's long-press lists (KeyboardLanguage.letterHolds, new
symbolHolds, and AccentCatalog's 123/#+= list) now match the system
keyboard's observed long-press options in the iOS 27.2 simulator: each
letter, 123 and #+= key held for ~3 s with a real-time HID touch and the
callout read from the accessibility tree, for English, Norwegian, Spanish,
German, Italian, French (France, Canada, Switzerland), Portuguese, Russian,
Ukrainian and Serbian (Latin).

Why: the Russian, Serbian and French lists said they were copied from
Apple's TextInput_ru/_sr/_fr bundles, and the other lists were from memory.
Hex may learn from Apple's keyboard only by black-box observation.

Replaced behavior:
- accentOverrides (overrides on a shared letter table) is replaced by
  letterHolds, a complete list per language: a letter the system keyboard
  holds nothing on now holds nothing (Spanish z, German z, Serbian e), where
  it used to fall back to the shared table.
- Lists gain the observed extra letters (English ŵ ř ț ğ ħ ķ ...,
  Norwegian's Sámi letters, Russian's combining-macron forms, which were
  left out before) and follow the system's order; Spanish n drops ñ (own key).
- 123/#+= holds: $ adds ₩ ₽, & holds §, = holds ≠ ≈, % holds ‰, 0 holds °;
  per language: № on # (Russian, Ukrainian), º ª on digits (Spanish,
  Italian, Portuguese), · on . and French quote order (French), „ quotes
  (German), kr on $ (Norwegian), ₴ on $ (Ukrainian).
- Capital ı shows İ (observed), not a second I.

Order: base first, then the others as the system callout shows them read
from the base's side, so Hex's callout (which reverses right-hand keys)
shows them in the system's left-to-right order. Deliberate differences:
Hex keeps the base at the thumb end and one row where the system wraps
long lists or puts the base mid-list.

Defaults where a hold was missed under simulator load: & = & § for German,
Norwegian, Swiss French and Portuguese (as all 8 other layouts observed);
Italian ~ < • treated as holding nothing (as everywhere else).

Docs: README and comments no longer say the data came from Apple files;
the unverified "iPad's Croatian layouts" clause is gone.

Verified: xcodebuild test on an iOS 27.2 iPhone 17 Pro simulator at
7770fb90 + this change: 425 tests, 0 failures, 1 skipped. Tests updated in
KeyboardLayoutTests (lists and on-screen order) and FullKeyboardEngineTests
(the haptics test holds Serbian c, since its e holds nothing).
2026-11-21 04:10:47 +00:00
..
Fixtures iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AutocorrectEngineTests.swift iOS: Ukrainian keyboard layout (#2128) 2026-11-21 02:30:15 +00: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: keep a failed recorder alive until its audio queue stops calling back (#2133) 2026-11-21 03:16:37 +00: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: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
FullKeyboardEngineTests.swift iOS keyboard: hold lists re-derived from the system keyboard by observation (#2140) 2026-11-21 04:10:47 +00:00
HexKeyGestureTests.swift iOS: fewer paste prompts, and a translate switch in the keyboard (#2134) 2026-11-21 03:24:58 +00:00
KeyboardBridgeTests.swift iOS: onboarding follows the desktop flow (#2136) 2026-11-21 03:27:38 +00:00
KeyboardLayoutTests.swift iOS keyboard: hold lists re-derived from the system keyboard by observation (#2140) 2026-11-21 04:10:47 +00: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: Clean up what I say keeps names, and is on by default (#2132) 2026-11-21 03:12:53 +00: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