Handle the space bar in the Javascript front end.

I wasn't passing it through at all, causing CURSOR_SELECT2 dependent
keyboard UI not to be reachable.
This commit is contained in:
Simon Tatham
2015-01-13 19:19:05 +00:00
parent 201b32983b
commit d31eff1483

2
emcc.c
View File

@ -317,6 +317,8 @@ void key(int keycode, int charcode, const char *key, const char *chr,
keyevent = keycode + (shift ? 0 : 32);
} else if (keycode >= 48 && keycode <= 57) {
keyevent = keycode;
} else if (keycode == 32) { /* space / CURSOR_SELECT2 */
keyevent = keycode;
}
if (keyevent >= 0) {