hex/ios/HEXShared/FullKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 35cea0ed31
iOS: no double space after a picked suggestion, and fast taps near the strip type the key (#2100)
* iOS keyboard: a space right after a suggestion is swallowed

A suggestion (a word, what you typed, or an emoji) types its word and a
space. A space pressed right after it typed a second one: Record typing
logs from a tester's iPhone showed every double space came from a strip
pick followed by space (8 of 9; the ninth was a held space, next commit).
Now that space is swallowed, as on Apple's keyboard, while the text
before the cursor is still what the suggestion left; any key, delete,
cursor move or other host change in between types it normally. The
swallowed press still counts towards double-space for a period. Typing
logs write it as edit op space_swallowed.

Verified: FullKeyboardEngineTests and AutocorrectEngineTests pass on an
iOS 27.2 simulator (63 tests); live in Messages, picking "pretty" from the
strip then space left one space.

* iOS keyboard: a strip tap while typing types the row-1 key below it

Record typing logs showed "the" coming out "th" with a double space: the
e, aimed a few points high, landed on the suggestion strip's left slot
17 to 170 ms after the previous key, which picked what was typed ("th")
and a space, and the next space doubled it. The pick also suppressed
"th" -> "the" for the rest of the session (and two such picks learn
"th" as a word). 6 of the 14 strip picks in the log were this; the
deliberate ones came 0.9 s or more after a key.

While you type (a key is down, or one went down or came up within
0.25 s) the strip's lower half now belongs to the keys: the key plane,
which lies over the strip, claims those touches in point(inside:), and
the engine presses the row-1 key straight below (the point moved onto
row 1's top edge, also for Spatial autocorrect's tap). The upper half,
and any tap after a pause, still picks. Typing logs mark such a press
with under: null on began.

Verified: FullKeyboardEngineTests and AutocorrectEngineTests pass on an
iOS 27.2 simulator (66 tests), including the view's hit test. Live in
Messages with a diagnostic build whose window was widened to 2 s (AXe
taps are ~0.9 s apart; not committed): "on th" then a tap on the strip's
lower half above e typed "On the "; the same tap after 2.6 s still
picked "th".

* iOS keyboard: holding the space bar still starts the trackpad

Record typing logs showed a double space typed by a space held about
0.5 s without moving, right after a space: a hold meant for Apple's
trackpad gesture, which Hex only started after a 10 pt slide, so the
release typed a space. Holding space still for 0.4 s now starts the
trackpad where the finger is, as Apple's does (keys blank, a selection
tick), and letting go types nothing; sliding 10 pt still starts it at
once. Normal space taps in the log last under 100 ms. Typing logs mark
it trackpad_start with hold: true.

Verified: the full HEXMobileTests suite passes on an iOS 27.2 simulator
(310 tests, 1 skipped as before), including the plane's hold timer. Live
in Messages, holding space for 0.7 s typed no space.
2026-11-20 21:25:59 +00:00
..
Emoji iOS: emoji panel no longer blurs on a real keyboard; taps and holds behave (#2070) 2026-11-20 16:58:50 +00:00
AccentPicker.swift iOS: Norwegian, Spanish and German full-keyboard layouts 2026-11-20 07:52:48 -05:00
AutocorrectEngine.swift iOS: never suggest slurs, and swear words only when asked (#2093) 2026-11-20 20:17:31 +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: no double space after a picked suggestion, and fast taps near the strip type the key (#2100) 2026-11-20 21:25:59 +00:00
FullKeyboardPalette.swift iOS keyboard: follow the keyboard's live traits for light and dark, not the proxy's appearance (#2050) 2026-11-20 15:53:21 +00:00
FullKeyboardSettings.swift iOS: Spatial autocorrect is on by default, under Settings › Keyboard (#2097) 2026-11-20 20:39:27 +00:00
FullKeyboardView+Emoji.swift iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
FullKeyboardView.swift iOS: Spatial autocorrect is on by default, under Settings › Keyboard (#2097) 2026-11-20 20:39:27 +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 keyboard starts listening on touch-down, with its capture page ready when it opens (#2089) 2026-11-20 20:04:35 +00:00
KeyboardClipboard.swift Replace the keyboard's blank Paste control with a Paste chip (#2011) 2026-11-19 21:06:32 +00:00
KeyboardKeyPlaneView.swift iOS: no double space after a picked suggestion, and fast taps near the strip type the key (#2100) 2026-11-20 21:25:59 +00:00
KeyboardLanguage.swift iOS keyboard: French is Apple's AZERTY; Canadian French stays QWERTY, Swiss French is QWERTZ (#2096) 2026-11-20 20:26:36 +00:00
KeyboardLayout.swift iOS: taps land on the intended key more often, and Spatial autocorrect keeps lowercase names (#2091) 2026-11-20 20:08:59 +00:00
KeyboardStripView.swift iOS: full keyboard by default, typing without Full Access, and a logging mark (#2067) 2026-11-20 16:41:37 +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
TypingDecoder.swift iOS: never suggest slurs, and swear words only when asked (#2093) 2026-11-20 20:17:31 +00:00
TypingJournal.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +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