mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
js: Recognise KeyboardEvent.key == "Escape"
This commit is contained in:
2
emcc.c
2
emcc.c
@ -277,6 +277,8 @@ void key(int keycode, const char *key, const char *chr, int location,
|
||||
keyevent = 127; /* Backspace / Delete */
|
||||
else if (!strnullcmp(key, "Enter"))
|
||||
keyevent = 13; /* return */
|
||||
else if (!strnullcmp(key, "Escape"))
|
||||
keyevent = 27;
|
||||
else if (!strnullcmp(key, "ArrowLeft") || !strnullcmp(key, "Left"))
|
||||
keyevent = CURSOR_LEFT;
|
||||
else if (!strnullcmp(key, "ArrowUp") || !strnullcmp(key, "Up"))
|
||||
|
Reference in New Issue
Block a user