diff options
| author | Simon Tatham <anakin@pobox.com> | 2015-01-13 19:19:05 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2015-01-13 19:19:05 +0000 |
| commit | d31eff148322ded1add98043854a5e5a5f48529f (patch) | |
| tree | 2458b1538b86c34e174345e38cf59ca0ff1b370d | |
| parent | 201b32983b5cd1f904da3614ee9136cfeec59818 (diff) | |
| download | puzzles-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |