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: 使 /// - .Empty: 使
/// ///
/// - .EmptyIgnorePreviousState: Empty /// - .EmptyIgnorePreviousState: Empty
/// /// .Empty()
/// - .Committing: /// - .Committing:
/// - .NotEmpty: /// - .NotEmpty:
/// - .Inputting: 使Compositor /// - .Inputting: 使Compositor
@ -108,6 +108,7 @@ enum InputState {
/// .EmptyIgnorePreviousState: Empty /// .EmptyIgnorePreviousState: Empty
/// ///
/// .Empty()
class EmptyIgnoringPreviousState: Empty { class EmptyIgnoringPreviousState: Empty {
override public var type: StateType { .ofEmptyIgnorePreviousState } override public var type: StateType { .ofEmptyIgnorePreviousState }
override var description: String { override var description: String {

View File

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