hex/ios/HEXShared/FullKeyboard
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
..
Emoji iOS: Emoji and Swipe typing are on by default, under Settings › Keyboard (#2129) 2026-11-21 02:41:15 +00:00
AccentPicker.swift iOS keyboard: hold lists re-derived from the system keyboard by observation (#2140) 2026-11-21 04:10:47 +00:00
AutocorrectEngine.swift iOS: the full keyboard's top bar matches the system keyboard (#2135) 2026-11-21 03:26:34 +00:00
DeleteWordSwipe.swift iOS: keep key haptics while dictating, and slide left on delete to delete words (#2080) 2026-11-20 17:55:51 +00:00
FullKeyboardEngine.swift iOS: the full keyboard's top bar matches the system keyboard (#2135) 2026-11-21 03:26:34 +00:00
FullKeyboardPalette.swift iOS: the full keyboard's top bar matches the system keyboard (#2135) 2026-11-21 03:26:34 +00:00
FullKeyboardSettings.swift iOS: Emoji and Swipe typing are on by default, under Settings › Keyboard (#2129) 2026-11-21 02:41:15 +00:00
FullKeyboardView+Emoji.swift iOS: Emoji and Swipe typing are on by default, under Settings › Keyboard (#2129) 2026-11-21 02:41:15 +00:00
FullKeyboardView.swift iOS: the full keyboard's top bar matches the system keyboard (#2135) 2026-11-21 03:26:34 +00:00
HexKeyGesture.swift iOS: the keyboard starts listening on touch-down, with its capture page ready when it opens (#2089) 2026-11-20 20:04:35 +00:00
HexKeyViews.swift iOS: the full keyboard's top bar matches the system keyboard (#2135) 2026-11-21 03:26:34 +00:00
KeyboardBackdropView.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
KeyboardClipboard.swift iOS: fewer paste prompts, and a translate switch in the keyboard (#2134) 2026-11-21 03:24:58 +00:00
KeyboardKeyPlaneView.swift iOS: Emoji and Swipe typing are on by default, under Settings › Keyboard (#2129) 2026-11-21 02:41:15 +00:00
KeyboardLanguage.swift iOS keyboard: hold lists re-derived from the system keyboard by observation (#2140) 2026-11-21 04:10:47 +00:00
KeyboardLayout.swift iOS: the full keyboard's top bar matches the system keyboard (#2135) 2026-11-21 03:26:34 +00:00
KeyboardStripView.swift iOS: the full keyboard's top bar matches the system keyboard (#2135) 2026-11-21 03:26:34 +00:00
never-suggest.tsv iOS: never suggest slurs, and swear words only when asked (#2093) 2026-11-20 20:17:31 +00:00
OffensiveWords.swift iOS: never suggest slurs, and swear words only when asked (#2093) 2026-11-20 20:17:31 +00:00
ShiftStateMachine.swift iOS: full keyboard experiment flag, key layout and shift model (#910) 2026-11-01 12:43:35 -08:00
SwipeDecoder.swift iOS: swipe typing for English and Spanish (Experiment, off by default) (#2106) 2026-11-20 22:30:53 +00:00
SwipeTyping.swift iOS: Emoji and Swipe typing are on by default, under Settings › Keyboard (#2129) 2026-11-21 02:41:15 +00:00
TypingDecoder.swift iOS: next-word suggestions and fewer wrong autocorrections (#2125) 2026-11-21 01:13:08 +00:00
TypingJournal.swift iOS: Delete what Hex learned also forgets the words autocorrect learned to keep (#2101) 2026-11-20 21:28:27 +00:00
TypingJournalLearning.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00