hex/ios/HEXShared/FullKeyboard/Engine/FullKeyboardEngine+Field.swift
Kit Langton 9e352ea9d4
iOS: group shared sources and split the full keyboard tests (#2448)
- 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.
2026-11-22 18:18:35 -08:00

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?()
}
}