From: Simon Tatham Date: Tue, 13 Jan 2015 19:19:05 +0000 (+0000) Subject: Handle the space bar in the Javascript front end. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=d31eff148322ded1add98043854a5e5a5f48529f;p=sgt-puzzles.git 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. --- diff --git a/emcc.c b/emcc.c index f9b9be9..c1b1f7a 100644 --- a/emcc.c +++ b/emcc.c @@ -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) {