hex/ios/HEXShared/FullKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel b786299a7b
iOS: fix the full keyboard crashing when it opens (#2008)
* Keep music playing while dictating on iPhone

Recording used the non-mixable .record category, which paused other audio, and in-keyboard dictation recorded from whatever input iOS picked, so a Bluetooth car switched to its hands-free mic and stalled the start. With the new Always use iPhone microphone setting (default on, replacing Bluetooth microphone and inverting the same stored key), the app and keyboard record from the built-in mic in playAndRecord with mixWithOthers and A2DP output; the keyboard also prefers the built-in mic's getUserMedia deviceId and releases the session afterwards.

Verified HEXMobileTests on the iPhone 18 Pro simulator and a Release install on the iPhone 17 Pro; music continuing during dictation is not yet checked on a device.

* Fix the full keyboard crashing when it opens

requestSupplementaryLexicon's completion inherited KeyboardViewController's main-actor isolation, but UIKit calls it on its lexicon-request queue, so Swift 6's runtime isolation check trapped (EXC_BREAKPOINT in _dispatch_assert_queue_fail, every open of the full keyboard in TestFlight build 3). The completion is now @Sendable and hops to the main actor; the clipboard loadObject callbacks get the same fix.

Verified from build 3's crash report on an iPhone 18 Pro; Release build compiles and HEXMobileTests pass on the simulator.
2026-11-19 19:54:06 +00:00
..
AccentPicker.swift iOS: dictate from the keyboard without opening Hex, plus suggestions, autocorrect, and Paste (#1999) 2026-11-19 12:20:12 -05:00
AutocorrectEngine.swift iOS: dictate from the keyboard without opening Hex, plus suggestions, autocorrect, and Paste (#1999) 2026-11-19 12:20:12 -05:00
FullKeyboardEngine.swift iOS: dictate from the keyboard without opening Hex, plus suggestions, autocorrect, and Paste (#1999) 2026-11-19 12:20:12 -05:00
FullKeyboardPalette.swift iOS: dictate from the keyboard without opening Hex, plus suggestions, autocorrect, and Paste (#1999) 2026-11-19 12:20:12 -05:00
FullKeyboardSettings.swift iOS: full keyboard experiment flag, key layout and shift model (#910) 2026-11-01 12:43:35 -08:00
FullKeyboardView.swift iOS: dictate from the keyboard without opening Hex, plus suggestions, autocorrect, and Paste (#1999) 2026-11-19 12:20:12 -05:00
HexKeyGesture.swift iOS: dictate from the keyboard without opening Hex, plus suggestions, autocorrect, and Paste (#1999) 2026-11-19 12:20:12 -05:00
HexKeyViews.swift iOS: dictate from the keyboard without opening Hex, plus suggestions, autocorrect, and Paste (#1999) 2026-11-19 12:20:12 -05:00
KeyboardClipboard.swift iOS: fix the full keyboard crashing when it opens (#2008) 2026-11-19 19:54:06 +00:00
KeyboardKeyPlaneView.swift iOS: dictate from the keyboard without opening Hex, plus suggestions, autocorrect, and Paste (#1999) 2026-11-19 12:20:12 -05:00
KeyboardLayout.swift iOS: dictate from the keyboard without opening Hex, plus suggestions, autocorrect, and Paste (#1999) 2026-11-19 12:20:12 -05:00
KeyboardStripView.swift iOS: dictate from the keyboard without opening Hex, plus suggestions, autocorrect, and Paste (#1999) 2026-11-19 12:20:12 -05:00
ShiftStateMachine.swift iOS: full keyboard experiment flag, key layout and shift model (#910) 2026-11-01 12:43:35 -08:00