aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2015-01-13 19:19:05 +0000
committerSimon Tatham <anakin@pobox.com>2015-01-13 19:19:05 +0000
commitd31eff148322ded1add98043854a5e5a5f48529f (patch)
tree2458b1538b86c34e174345e38cf59ca0ff1b370d
parent201b32983b5cd1f904da3614ee9136cfeec59818 (diff)
downloadpuzzles-d31eff148322ded1add98043854a5e5a5f48529f.zip
puzzles-d31eff148322ded1add98043854a5e5a5f48529f.tar.gz
puzzles-d31eff148322ded1add98043854a5e5a5f48529f.tar.bz2
puzzles-d31eff148322ded1add98043854a5e5a5f48529f.tar.xz
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.
-rw-r--r--emcc.c2
1 files changed, 2 insertions, 0 deletions
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) {