Reverts change that broke context persistence.

This commit is contained in:
jahorton 2019-05-08 13:02:42 +07:00
parent e44e6772a1
commit f18957d16e
2 changed files with 2 additions and 2 deletions

View file

@ -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
}
}

View file

@ -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
}
}