KeyHandler // Convert CharCode "Space" to KeyCode.
This commit is contained in:
parent
71eac6f09f
commit
047f487c8c
|
@ -308,7 +308,7 @@ static NSString *const kGraphVizOutputfile = @"/tmp/vChewing-visualization.dot";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([input isNumericPad]) {
|
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];
|
[self clear];
|
||||||
InputStateEmpty *emptyState = [[InputStateEmpty alloc] init];
|
InputStateEmpty *emptyState = [[InputStateEmpty alloc] init];
|
||||||
stateCallback(emptyState);
|
stateCallback(emptyState);
|
||||||
|
|
Loading…
Reference in New Issue