KeyHandler // Typo fix.

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

View File

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

View File

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