hex/ios/HEXKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel b035d6b2d0 iOS keyboard: the capture page resumes an audio context iOS suspended mid-dictation
TestFlight tester on X (iPhone 13 Pro Max, iOS 27, build 56 or earlier): "in progress
recording dropped when I took a screenshot".

What a screenshot does to an in-keyboard dictation, in an iPhone 17 Pro iOS 27.2
simulator on the Mac Studio (WebKit's mock audio device records there):
- The host only going inactive doesn't stop it: with Control Center pulled down for
  4 s mid-dictation the page kept sending audio (700,416 frames at 48 kHz over a
  14.8 s recording, no gap).
- A screenshot taken with Cmd-Shift-3 hid the keyboard and the probe log said
  "keyboard hidden while recording: finishing with what was said" at the shutter.
  The simulator can only take one through its hardware keyboard, which also turns
  on keyboard minimization, so it doesn't show which of the two hid it. On an
  iPhone, iOS 26 and 27 open the screenshot's full-screen preview over the app, and
  a keyboard that hides is torn down and its WebKit processes suspended, so a
  dictation can't keep recording through that.
- On build 56 a keyboard hidden mid-recording lost the dictation:
  viewWillDisappear only dropped a touch-down capture, and the recording went with
  the view controller (reproduced in #2163). Since #2163 on origin/dev it stops,
  keeps what was said, and the text goes into the same field when the keyboard
  comes back within 30 s, else is offered as Paste dictation.

The one way left for a capture to end early with the keyboard still up is the
page's audio context: iOS may suspend or interrupt it for other audio and the page
never resumed it, so no more audio came and the 6 s watchdog ended the dictation.
The page now resumes a context that isn't running every 250 ms while it records,
and stops trying when the capture stops.

Not changed: a keyboard hidden by a screenshot's preview still ends the recording
(with its text kept, as above).

Verified: builds clean; in the simulator the touch-down capture still starts and
records through Control Center with no gap (numbers above).
2026-11-21 10:00:12 -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: the capture page resumes an audio context iOS suspended mid-dictation 2026-11-21 10:00:12 -05:00
KeyboardViewController.swift iOS keyboard: a failure from Hex shows for seconds, not forever, and the Hex key retries it 2026-11-21 10:00:12 -05:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00