hex/ios/HEXShared/FullKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 393dad067c
iOS keyboard: on iOS 26 the iPhone's rows are Apple's iOS 26 rows (#2358)
* iOS keyboard: on iOS 26 the iPhone's rows are Apple's iOS 26 rows

What: Apple's iPhone keyboard draws other rows before iOS 27 (black box,
iOS 26.2 and 26.5 simulators beside Hex in the same field, iOS 27.2 as the
control). Upright on an 844 to 874 pt iPhone its keycaps, pitch and prediction
bar are iOS 27's but its panel is 7 pt taller under the keys, so every row sat
7 pt above Hex's; on a 900 pt or taller one it is 2 pt shorter, 2 pt below.
Turned, its keycaps are iOS 26's 27.33 pt on a 35.33 pt pitch, ending 4 pt
above the bottom, against Hex's 32 on 40 (row 1 17 pt off). Hex was measured
on iOS 27.2 only (#2178), so everyone on iOS 26 had keys off their own
keyboard's rows. On iOS 26 Hex now uses Apple's iOS 26 rows:
- upright 844 to 874 pt (12, 16, 17 Pro): rows 7 pt higher, row 4 whole
  (no 4 pt trim), 3 pt under it: 247 -> 254 pt
- upright 900 pt and taller (Air, Plus, Pro Max): 5 pt under row 4 instead of
  7: rows 2 pt lower, 266 -> 264 pt
- turned (Face ID iPhones): 27.33 pt keycaps, 8 pt gaps, 4 pt under row 4:
  204 -> 187.33 pt, whose top meets Apple's panel edge
The strip stays 38 pt upright and 42 pt turned; the columns, the SE (upright
and turned), the Duo and the iPad keep today's metrics on every version.
On iOS 27 nothing changes.

Changed: KeyboardMetrics.portraitIOS26, landscapeIOS26, appleRowsAreIOS26
(KeyboardLanguage.systemMajorVersion < 27, #2357's check); phonePortrait
(.regular, .large) and letterRows' turned phone base pick by it. Everything that
reads the metrics follows: Hex's requested height, the number row, the emoji
panel (also the dictation bar's), #2280's fitting to a short view, hit areas.

Verified (Studio simulators): Apple's keycaps over Hex's, iPhone 16, 17 Pro,
Air and 17 Pro Max on iOS 26.5 and the 17 Pro on iOS 26.2, upright and turned,
letters, 123 and #+=: every edge within 0.34 pt (26.2 turned row 1's top
0.67 pt). iOS 27.2 17 Pro: Hex's keyboard is pixel-identical to origin/dev
6459618d upright and turned (only the field's caret/status bar differ).
Real HID touches on iOS 26.5 (17 Pro, 17 Pro Max, upright and turned): "the
quick brown fox jumps over the lazy dog" typed exactly; taps 2 pt under row 1's
top edge type q to p; taps 2 pt above and 1 pt below row 4's bottom edge hit
space and return. Rows identical in Safari's address bar and Spotlight; number
row, emoji panel and the dictation bar's emoji panel fit. New case
KeyboardLayoutTests.testIOS26RowsAreApplesIOS26Rows. ios/README updated.

* iOS keyboard: iOS 26's rows on iOS 26 only; iOS 18 keeps today's

appleRowsAreIOS26 was systemMajorVersion < 27, which also moved the rows on
iOS 18, where Apple's keyboard was never measured (the Studio has no iOS 18
simulator). It is now == 26, so iOS 18 (and any other version) keeps the iOS 27
rows Hex drew there before; the comment and ios/README say iOS 18 is unmeasured.
Ukrainian's twelve-key check stays >= 27 (its eleven-key rows are the old layout).

Verified: testIOS26RowsAreApplesIOS26Rows now pins 18, 25 and 27 to the same keys
and heights and 26 to different ones; xcodebuild test (iPhone 17 Pro, iOS 27.2)
and python3 scripts/code-shape.py pass.
2026-11-22 06:42:02 -05:00
..
Emoji iOS dictation: no spaces or stray full stops around Chinese and Japanese; the bar's emoji panel says Back (#2347) 2026-11-22 03:47:53 -05:00
AccentPicker.swift iOS keyboard (iPad): Apple-sized accent menus docked, fitting emoji icons floating; the lost first taps measured (#2325) 2026-11-22 00:52:26 -05:00
AdaptiveTouch.swift iOS: the full keyboard matches the system keyboard one to one (#2178) 2026-11-21 07:20:46 -05:00
AdaptiveTouchLabels.swift iOS: Adaptive touch, personal key centres learned on device (Experiment, off by default) (#2146) 2026-11-21 06:13:04 +00:00
AutocorrectEngine+Accents.swift iOS: the next word gives the word before its language's accents (#2231) 2026-11-21 14:35:35 -05:00
AutocorrectEngine+Dictionaries.swift iOS keyboard: Canadian and Swiss French get Apple's apostrophe key ending row 2 (#2356) 2026-11-22 05:36:52 -05:00
AutocorrectEngine+Distance.swift iOS: words mid-sentence stay lowercase unless you capitalized them (#2218) 2026-11-21 14:35:10 -05:00
AutocorrectEngine+Vocabulary.swift iOS: words mid-sentence stay lowercase unless you capitalized them (#2218) 2026-11-21 14:35:10 -05:00
AutocorrectEngine.swift iOS keyboard: French AZERTY gets Apple's apostrophe key after N (#2354) 2026-11-22 05:09:39 -05:00
CzechTyping.swift iOS keyboard: Canadian and Swiss French get Apple's apostrophe key ending row 2 (#2356) 2026-11-22 05:36:52 -05:00
DeleteWordSwipe.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
DictationUndo.swift iOS: Undo dictation works after the cursor moves, and goes when it can't (#2240) 2026-11-21 15:15:23 -05:00
FullKeyboardEngine+Field.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
FullKeyboardEngine+Hangul.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
FullKeyboardEngine+HostText.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
FullKeyboardEngine+Keys.swift iOS keyboard: French AZERTY gets Apple's apostrophe key after N (#2354) 2026-11-22 05:09:39 -05:00
FullKeyboardEngine+Revert.swift iOS: avoid double spaces when editing a word mid-sentence (#2214) 2026-11-21 12:43:26 -05:00
FullKeyboardEngine+Selection.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
FullKeyboardEngine+SmartSpace.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
FullKeyboardEngine+SwipeTyping.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
FullKeyboardEngine+Trackpad.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
FullKeyboardEngine.swift iOS keyboard: Canadian and Swiss French get Apple's apostrophe key ending row 2 (#2356) 2026-11-22 05:36:52 -05:00
FullKeyboardPalette.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
FullKeyboardSettings.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
FullKeyboardTouch.swift iOS: a quick space tap that drifts still types a space, and space keeps its place in a rollover (#2233) 2026-11-21 14:36:17 -05:00
FullKeyboardView+Debug.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
FullKeyboardView+Emoji.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
FullKeyboardView+FullAccess.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
FullKeyboardView+Selection.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
FullKeyboardView+Settings.swift iOS keyboard: optional joined keyboard on the unfolded Duo (Experiments) (#2343) 2026-11-22 04:10:59 -05:00
FullKeyboardView+Vocabulary.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
FullKeyboardView.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
GermanCapitals.swift iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
GreekTyping.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
HangulComposer.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05: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: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
KeyboardBackdropView.swift iOS: the keyboard is iOS's own glass again; the backdrop shows only over an earlier Hex keyboard iOS left on screen (#2302) 2026-11-21 21:29:58 -05:00
KeyboardClipboard.swift iOS keyboard: no automatic hand-off or Code from Messages where Apple's keyboard is split (#2349) 2026-11-22 04:16:08 -05:00
KeyboardKeyPlaneView.swift ios: smaller key labels on the duo's cover screen (#2346) 2026-11-22 04:35:44 -05:00
KeyboardLanguage.swift iOS keyboard: on iOS 26 the iPhone's rows are Apple's iOS 26 rows (#2358) 2026-11-22 06:42:02 -05:00
KeyboardLaunchWork.swift iOS: the dictation bar can start dictating by itself (Auto-start: never, on switch, always) (#2267) 2026-11-21 17:08:50 -05:00
KeyboardLayout.swift iOS keyboard: on iOS 26 the iPhone's rows are Apple's iOS 26 rows (#2358) 2026-11-22 06:42:02 -05:00
KeyboardPadRows.swift iOS keyboard: Canadian and Swiss French get Apple's apostrophe key ending row 2 (#2356) 2026-11-22 05:36:52 -05:00
KeyboardStripView.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
LanguageLearning.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05: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
ReturnKeyStyle.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
ShiftStateMachine.swift iOS keyboard: Ukrainian follows the iOS version's own rows; ʼ on its 123 and #+= pages (#2357) 2026-11-22 05:45:47 -05:00
SmartPunctuation.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
SwipeDecoder.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
SwipeTyping.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
TextChecking.swift iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
TrackpadCursor.swift iOS: the space-bar trackpad moves like Apple's (#2219) 2026-11-21 13:23:46 -05:00
TrackpadSelection.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
TrackpadSelectionStrip.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
TypingDecoder.swift ios keyboard: read a missed space with a slip, and run-together words (#2244) 2026-11-21 16:15:02 -05:00
TypingJournal.swift iOS: hold the bar to dictate, Learn how I type on, a plain centred Paste, and typing logs off (#2210) 2026-11-21 12:11:58 -05:00
TypingJournalLearning.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00