hex/ios/HEXKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel b811133eea iOS: Undo dictation works after the cursor moves, and goes when it can't
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:14:15 -05:00
..
CleanupTagger iOS: clean up what I say with an on-device tagger (experiment) (#2023) 2026-11-20 01:29:41 +00:00
TypingModel iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
ContainingAppOpener.swift Open Hex from the iPhone keyboard and show live keyboard setup (#599) 2026-10-31 09:56:02 -07:00
HEXKeyboard.entitlements Set up Hex Mobile internal TestFlight releases (#1997) 2026-11-19 11:48:49 -05:00
Info.plist iOS: plain permission prompts and no pre-prompt Allow button, for App Review (#2058) 2026-11-20 16:13:36 +00:00
KeyboardInputView.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
KeyboardLocalDictation.swift iOS keyboard: stale microphone errors clear, Hex key audio calls leave the main thread, counts read 1, 2, 3 (#2203) 2026-11-21 10:08:42 -05:00
KeyboardViewController.swift iOS: Undo dictation works after the cursor moves, and goes when it can't 2026-11-21 15:14:15 -05:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00