mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-21 15:17:40 +00:00
Reverts change that broke context persistence.
This commit is contained in:
parent
e44e6772a1
commit
f18957d16e
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue