KeyHandler // Convert CharCode "Space" to KeyCode.
This commit is contained in:
parent
15205aa47e
commit
0fe13430e1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue