SessionCtl // Do clearInlineDisplay() in commitComposition().

This commit is contained in:
ShikiSuen 2022-11-13 18:39:23 +08:00
parent 8216497382
commit 11edfbddfb
2 changed files with 2 additions and 1 deletions

View File

@ -277,6 +277,7 @@ extension SessionCtl {
public override func commitComposition(_ sender: Any!) {
_ = sender //
resetInputHandler()
clearInlineDisplay()
// super.commitComposition(sender) //
}

View File

@ -115,7 +115,7 @@ extension SessionCtl {
}
/// 使
private func clearInlineDisplay() {
public func clearInlineDisplay() {
doSetMarkedText(
"", selectionRange: NSRange(location: 0, length: 0),
replacementRange: NSRange(location: NSNotFound, length: NSNotFound)