ctlIME // Turn dealt EmptyIgnoringPreviousState to Empty().

This commit is contained in:
ShikiSuen 2022-06-30 08:51:06 +08:00
parent 6ad6c73bc3
commit c79c4aeb2e
2 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@ protocol InputStateProtocol {
/// - .Empty: 使
///
/// - .EmptyIgnorePreviousState: Empty
///
/// .Empty()
/// - .Committing:
/// - .NotEmpty:
/// - .Inputting: 使Compositor
@ -108,6 +108,7 @@ enum InputState {
/// .EmptyIgnorePreviousState: Empty
///
/// .Empty()
class EmptyIgnoringPreviousState: Empty {
override public var type: StateType { .ofEmptyIgnorePreviousState }
override var description: String {

View File

@ -369,9 +369,8 @@ extension ctlInputMethod {
) {
_ = state //
_ = previous //
ctlCandidateCurrent.visible = false
hideTooltip()
clearInlineDisplay()
// previous state 使西 commit
handle(state: InputState.Empty())
}
private func handle(state: InputState.Committing, previous: InputStateProtocol) {