KeyHandler // Use compositor.isEmpty in handleEsc().
This commit is contained in:
parent
40ad331784
commit
2367e91840
|
@ -605,15 +605,10 @@ extension KeyHandler {
|
||||||
clear()
|
clear()
|
||||||
stateCallback(InputState.EmptyIgnoringPreviousState())
|
stateCallback(InputState.EmptyIgnoringPreviousState())
|
||||||
} else {
|
} else {
|
||||||
|
if composer.isEmpty { return true }
|
||||||
/// 如果注拼槽不是空的話,則清空之。
|
/// 如果注拼槽不是空的話,則清空之。
|
||||||
if !composer.isEmpty {
|
composer.clear()
|
||||||
composer.clear()
|
stateCallback(compositor.isEmpty ? InputState.EmptyIgnoringPreviousState() : buildInputtingState)
|
||||||
if compositorLength == 0 {
|
|
||||||
stateCallback(InputState.EmptyIgnoringPreviousState())
|
|
||||||
} else {
|
|
||||||
stateCallback(buildInputtingState)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue