hex/ios/HEXShared/FullKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 810a7affc7 iOS: a held space reads as a typed one for the strip and 123
Follow-up to the held mid-sentence space (14ed855d). Two regressions it
introduced: after "brown" was replaced with "black" and space tapped in "The
quick brown fox", the strip still offered completions of the finished word
(blackberry, blacks), and picking one replaced "black"; and a space held on
the 123 page left the keys on 123, where a typed space goes back to ABC.

- The strip now reads the text before the cursor with the held space added
  (stripBefore), so it offers next-word predictions as at a typed space,
  with the same capitalization rule.
- Picking from the strip while a space is held types that space first, so
  the pick goes in after it ("black women fox"), never in the finished word's
  place; the space after the pick is held again before " fox". A revert pick
  is untouched (the strip offers it only after delete takes the held space).
- The space bar's held space counts as a space for the keys' page:
  layerState.didInsert(" ") then rebuildLayoutIfNeeded, so 123 returns to
  ABC. A picked suggestion's held space keeps today's page behaviour.
- FullKeyboardEngine.swift stays at 1,500 lines: insertPicked now logs the
  suggestion context itself, and layerState and rebuildLayoutIfNeeded lose
  private so the SmartSpace file can use them.

Verified on an iOS 27.2 simulator with the Hex keyboard (KBHost field,
"brown" selected): "black" then space reads "The quick black fox jumps" and
the strip shows and / women / hair (next words, as origin/dev showed at a
typed space); picking "women" reads "The quick black women fox jumps" and the
strip moves on (in / and / who). 123, "7", space reads "The quick 7 fox
jumps" with the letters page back. "blsck", space, delete keeps "black fox"
and offers the revert; tapping it reads "blsck fox". xcodebuild
test-without-building -only-testing FullKeyboardEngineTests and
TypingLogTests: 124 tests, 0 failures, including a new
testAHeldSpaceOffersTheNextWordAndGoesBackToLetters case.
2026-11-21 12:42:45 -05:00
..
Emoji iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
AccentPicker.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -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+Dictionaries.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
AutocorrectEngine+Distance.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
AutocorrectEngine+Vocabulary.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
AutocorrectEngine.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
CzechTyping.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
DeleteWordSwipe.swift iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
FullKeyboardEngine+Keys.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
FullKeyboardEngine+Revert.swift iOS: no double space when you fix a word mid-sentence 2026-11-21 12:34:26 -05:00
FullKeyboardEngine+SmartSpace.swift iOS: a held space reads as a typed one for the strip and 123 2026-11-21 12:42:45 -05:00
FullKeyboardEngine+SwipeTyping.swift iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
FullKeyboardEngine.swift iOS: a held space reads as a typed one for the strip and 123 2026-11-21 12:42:45 -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: the full keyboard matches the system keyboard one to one (#2178) 2026-11-21 07:20:46 -05:00
FullKeyboardTouch.swift iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
FullKeyboardView+Emoji.swift iOS: text replacements without autocorrect, End with a period, and emoji and symbols on the Dictation bar (#2147) 2026-11-21 06:24:16 +00:00
FullKeyboardView+Vocabulary.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
FullKeyboardView.swift iOS: a balanced top bar, with a small chip for an autocorrection (#2207) 2026-11-21 10:41:42 -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: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -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 balanced top bar, with a small chip for an autocorrection (#2207) 2026-11-21 10:41:42 -05: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: Code from Messages shows only when Apple's keyboard is on (#2187) 2026-11-21 08:39:11 -05:00
KeyboardKeyPlaneView.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
KeyboardLanguage.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
KeyboardLaunchWork.swift iOS keyboard: nothing heavy before the keys' first frame (#2185) 2026-11-21 08:28:59 -05:00
KeyboardLayout.swift iOS: a balanced top bar, with a small chip for an autocorrection (#2207) 2026-11-21 10:41:42 -05:00
KeyboardStripView.swift iOS: a balanced top bar, with a small chip for an autocorrection (#2207) 2026-11-21 10:41:42 -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: Greek keyboard, tonos autocorrect, and a final ς in Lowercase (#2184) 2026-11-21 08:26:30 -05:00
SmartPunctuation.swift iOS: no double space when you fix a word mid-sentence 2026-11-21 12:34:26 -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: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
TypingDecoder.swift iOS: Adaptive touch, personal key centres learned on device (Experiment, off by default) (#2146) 2026-11-21 06:13:04 +00:00
TypingJournal.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
TypingJournalLearning.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00