ctlIME // Force composedString() results to respect state context.

This commit is contained in:
ShikiSuen 2022-05-19 08:55:15 +08:00
parent 93b70dc830
commit af2bdc4343
1 changed files with 5 additions and 0 deletions

View File

@ -204,6 +204,11 @@ class ctlInputMethod: IMKInputController {
override func commitComposition(_ sender: Any!) {
resetKeyHandler(client: sender)
}
//
override func composedString(_ sender: Any!) -> Any! {
(state as? InputState.NotEmpty)?.composingBuffer ?? ""
}
}
// MARK: - State Handling