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