KeyHandler // Convert CharCode "Space" to KeyCode.

This commit is contained in:
ShikiSuen 2022-03-11 19:46:59 +08:00
parent 8219189bf5
commit 2279fb6ac3
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ static NSString *const kGraphVizOutputfile = @"/tmp/vChewing-visualization.dot";
}
if ([input isNumericPad]) {
if (![input isLeft] && ![input isRight] && ![input isDown] && ![input isUp] && charCode != 32 && isprint(charCode)) {
if (![input isLeft] && ![input isRight] && ![input isDown] && ![input isUp] && ![input isSpace] && isprint(charCode)) {
[self clear];
InputStateEmpty *emptyState = [[InputStateEmpty alloc] init];
stateCallback(emptyState);