ref: d94d671bf970171d250bcfcebe211d9e49e154e1
parent: 35d382019fa3fead56cfe77b64e720acc1c0da09
author: Ben Harris <bjh21@bjh21.me.uk>
date: Mon Oct 24 20:48:58 EDT 2022
js: Handle KeyboardEvent.key == "Spacebar" This is apparently generated in place of " " by Internet Explorer.
--- a/emcc.c
+++ b/emcc.c
@@ -277,6 +277,8 @@
keyevent = 127; /* Backspace / Delete */
else if (!strnullcmp(key, "Enter"))
keyevent = 13; /* return */
+ else if (!strnullcmp(key, "Spacebar"))
+ keyevent = ' ';
else if (!strnullcmp(key, "Escape"))
keyevent = 27;
else if (!strnullcmp(key, "ArrowLeft") || !strnullcmp(key, "Left"))