chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
201b329
)
Handle the space bar in the Javascript front end.
author
Simon Tatham
<anakin@pobox.com>
Tue, 13 Jan 2015 19:19:05 +0000
(19:19 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Tue, 13 Jan 2015 19:19:05 +0000
(19:19 +0000)
I wasn't passing it through at all, causing CURSOR_SELECT2 dependent
keyboard UI not to be reachable.
emcc.c
patch
|
blob
|
history
diff --git
a/emcc.c
b/emcc.c
index f9b9be9965c627315e5082bfd6e191bf0cade637..c1b1f7ac33bb28356022713893205b8d8a53e24e 100644
(file)
--- 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) {