KeyHandler // Allow typing FW space when state.Empty().

This commit is contained in:
ShikiSuen 2022-07-25 17:51:56 +08:00
parent 4c838cf45c
commit 764ffb8668
1 changed files with 11 additions and 0 deletions

View File

@ -475,6 +475,17 @@ extension KeyHandler {
}
}
// MARK: / (Full-Width / Half-Width Space)
/// 使
if state is InputState.Empty {
if input.isSpace, !input.isOptionHold, !input.isFunctionKeyHold, !input.isControlHold, !input.isCommandHold {
stateCallback(InputState.Committing(textToCommit: input.isShiftHold ? " " : " "))
}
stateCallback(InputState.Empty())
return true
}
// MARK: - (Still Nothing)
/// ctlInputMethod