ctlIME // Force composedString() results to respect state context.
This commit is contained in:
parent
93b70dc830
commit
af2bdc4343
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue