Ryan Vogel
2a7b12bfa6
iOS: Undo dictation works after the cursor moves, and goes when it can't ( #2240 )
...
TestFlight build 56 (2ef08aa4 ): after moving the cursor into the dictated
text, Undo dictation did nothing. The chip stayed up for its 12 s after any
cursor move, but undoDictation only deleted when the dictation was still
right before the cursor, so a tap after a move just hid it. origin/dev
(96b4f365 ) had the same code.
Now the keyboard keeps the text either side of the dictation from when it
went in (DictationUndo) and finds it again in the host's context around
the cursor. When it is shown whole and exactly once, and the text either
side still matches, Undo moves the cursor to its end (UTF-16 offsets that
stay inside what the host showed), deletes it and puts the cursor back in
the text it was moved to. Text views that show only the cursor's sentence
leave out the space before it; that space goes too when the sentence starts
what they show. When it can't be found (a selection, another sentence, the
same words twice, text changed around it) the chip hides as the host
reports the change instead of sitting there doing nothing. The unmoved case
keeps its old check, now also refused while text is selected (deleteBackward
would have taken the selection first) and when what followed it moved.
KeyboardTextTarget gains selectedText (nil by default) for this.
Verified: iPhone 16 Pro simulator, iOS 27.0, a UITextView host, a real
dictation insert through Hex's hosted-keyboard-tour fixture ("Hi Sam." +
" See you at ten."), real touches: build 56 left the text unchanged after
moving into the dictation or before it; this change restores "Hi Sam."
with the cursor at 7 after moving into it, unmoved undo still works, and
moving to another sentence (before it, or into later text) hides the chip
with nothing deleted. HEXMobile tests on that simulator: 661 run, the new
case passes; the 11 cleanup-tagger failures were the unfetched model and
pass (78/78) after scripts/fetch-cleanup-model.sh.
2026-11-21 15:15:23 -05:00
..
Emoji
iOS: Undo dictation works after the cursor moves, and goes when it can't ( #2240 )
2026-11-21 15:15:23 -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+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: 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: 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: the next word gives the word before its language's accents ( #2231 )
2026-11-21 14:35:35 -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
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+Keys.swift
ios: learn each language separately (experiment) ( #2188 )
2026-11-21 09:00:58 -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+SmartSpace.swift
iOS: avoid double spaces when editing a word mid-sentence ( #2214 )
2026-11-21 12:43:26 -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+Trackpad.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
FullKeyboardEngine.swift
iOS: Undo dictation works after the cursor moves, and goes when it can't ( #2240 )
2026-11-21 15:15:23 -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: experiment to put the emoji panel's ABC under the emoji key ( #2221 )
2026-11-21 13:41: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+Emoji.swift
iOS: experiment to put the emoji panel's ABC under the emoji key ( #2221 )
2026-11-21 13:41:53 -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: Undo dictation works after the cursor moves, and goes when it can't ( #2240 )
2026-11-21 15:15:23 -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: the space-bar trackpad moves like Apple's ( #2219 )
2026-11-21 13:23:46 -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: 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
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: avoid double spaces when editing a word mid-sentence ( #2214 )
2026-11-21 12:43: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: the space-bar trackpad moves like Apple's ( #2219 )
2026-11-21 13:23:46 -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: 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