diff --git a/ios/engine/KMEI/KeymanEngine/Classes/TextField.swift b/ios/engine/KMEI/KeymanEngine/Classes/TextField.swift index 1e4b308e75..425c5506c9 100644 --- a/ios/engine/KMEI/KeymanEngine/Classes/TextField.swift +++ b/ios/engine/KMEI/KeymanEngine/Classes/TextField.swift @@ -167,7 +167,7 @@ public class TextField: UITextField, KeymanResponder { length: offset(from: textRange.start, to: textRange.end)) Manager.shared.setContextState(text: text, range: newRange) - Manager.shared.resetContext() + // This is called when editing in-app; do not reset context here. shouldUpdateKMText = false } } diff --git a/ios/engine/KMEI/KeymanEngine/Classes/TextView.swift b/ios/engine/KMEI/KeymanEngine/Classes/TextView.swift index 7233a1781b..87fe2fde28 100644 --- a/ios/engine/KMEI/KeymanEngine/Classes/TextView.swift +++ b/ios/engine/KMEI/KeymanEngine/Classes/TextView.swift @@ -274,7 +274,7 @@ extension TextView: UITextViewDelegate { if shouldUpdateKMText { // Catches copy/paste operations Manager.shared.setContextState(text: textView.text, range: textView.selectedRange) - Manager.shared.resetContext() + // This is called when editing in-app; do not reset context here. shouldUpdateKMText = false } }