mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-22 08:25:45 -07:00
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:
2
emcc.c
2
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) {
|
||||
|
Reference in New Issue
Block a user