KeyHandler // Typo fix.

This commit is contained in:
ShikiSuen 2022-07-26 16:35:23 +08:00
parent 162cf8df89
commit 759ebe7f7d
2 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,7 @@ enum StateType {
case ofDeactivated case ofDeactivated
case ofAssociatedPhrases case ofAssociatedPhrases
case ofEmpty case ofEmpty
case ofEmptyIgnorePreviousState case ofEmptyIgnoringPreviousState
case ofCommitting case ofCommitting
case ofNotEmpty case ofNotEmpty
case ofInputting case ofInputting
@ -70,7 +70,7 @@ protocol InputStateProtocol {
/// 西 .NotEmpty /// 西 .NotEmpty
/// - .Empty: 使 /// - .Empty: 使
/// ///
/// - .EmptyIgnorePreviousState: Empty /// - .EmptyIgnoringPreviousState: Empty
/// .Empty() /// .Empty()
/// - .Committing: /// - .Committing:
/// - .NotEmpty: /// - .NotEmpty:
@ -106,11 +106,11 @@ enum InputState {
// MARK: - // MARK: -
/// .EmptyIgnorePreviousState: Empty /// .EmptyIgnoringPreviousState: Empty
/// ///
/// .Empty() /// .Empty()
class EmptyIgnoringPreviousState: Empty { class EmptyIgnoringPreviousState: Empty {
override public var type: StateType { .ofEmptyIgnorePreviousState } override public var type: StateType { .ofEmptyIgnoringPreviousState }
override var description: String { override var description: String {
"<InputState.EmptyIgnoringPreviousState>" "<InputState.EmptyIgnoringPreviousState>"
} }

View File

@ -55,7 +55,7 @@ extension KeyHandler {
// Megrez // Megrez
if input.isInvalid { if input.isInvalid {
// .Empty(IgnoringPreviousState) .Deactivated // .Empty(IgnoringPreviousState) .Deactivated
// .EmptyIgnorePreviousState.Empty // .EmptyIgnoringPreviousState.Empty
if state is InputState.Empty || state is InputState.Deactivated { if state is InputState.Empty || state is InputState.Deactivated {
return false return false
} }