KeyHandler // Let invalid input pass when the state is Empty.

This commit is contained in:
ShikiSuen 2022-06-24 15:34:28 +08:00
parent 4dc17d8a2c
commit dedc8770cf
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,12 @@ extension KeyHandler {
// Megrez
if input.isInvalidInput {
// .Empty(IgnoringPreviousState) .Deactivated
if state is InputState.Empty || state is InputState.Deactivated
|| state is InputState.EmptyIgnoringPreviousState
{
return false
}
IME.prtDebugIntel("550BCF7B: KeyHandler just refused an invalid input.")
errorCallback()
stateCallback(state)