mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
- Move the full keyboard's engine, view and autocorrect families into HEXShared/FullKeyboard/Engine, View and Autocorrect. - Move dictation formatting, spelling and romanizer sources into HEXShared/Formatting, Spelling and Romanizers. - Split the 4,181-line FullKeyboardEngineTests file into per-capability extension files, and KeyboardClipboardTests into its own file. Pure moves: no behavior changes and the same 160 tests.
16 lines
508 B
Swift
16 lines
508 B
Swift
import UIKit
|
|
|
|
/// The one edit notification: kept beside the engine like the trackpad's own code so
|
|
/// `FullKeyboardEngine.swift` stays readable.
|
|
@MainActor
|
|
extension FullKeyboardEngine {
|
|
func didEdit() {
|
|
suggestionSpaceBefore = nil
|
|
swipeRetries.edited()
|
|
// A key's own edit means a pending Dictate no longer has the field it picked.
|
|
trackpadSelectionState.pendingDictation = nil
|
|
refreshAutoCapitalization()
|
|
refreshSuggestions()
|
|
onEdit?()
|
|
}
|
|
}
|