aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2022-12-10 19:05:11 +0000
committerBen Harris <bjh21@bjh21.me.uk>2022-12-10 19:07:47 +0000
commitebb7b4277e2440e66b65ac910a6af143bd2833d8 (patch)
tree82cabe4b895562a629060afd1bf805030066f92c
parent9bcb06ee305455d24ab22f4c8f3556213da1a1ee (diff)
downloadpuzzles-ebb7b4277e2440e66b65ac910a6af143bd2833d8.zip
puzzles-ebb7b4277e2440e66b65ac910a6af143bd2833d8.tar.gz
puzzles-ebb7b4277e2440e66b65ac910a6af143bd2833d8.tar.bz2
puzzles-ebb7b4277e2440e66b65ac910a6af143bd2833d8.tar.xz
js: Don't treat SoftRight as CURSOR_SELECT2
I was hoping that I could treat SoftLeft and SoftRight the same in C and arrange to filter one of them out in JavaScript, but that turned out to be impractical.
-rw-r--r--emcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/emcc.c b/emcc.c
index d970251..3ff66d5 100644
--- a/emcc.c
+++ b/emcc.c
@@ -317,8 +317,8 @@ bool key(int keycode, const char *key, const char *chr, int location,
keyevent = CURSOR_RIGHT;
else if (!strnullcmp(key, "ArrowDown") || !strnullcmp(key, "Down"))
keyevent = CURSOR_DOWN;
- else if (!strnullcmp(key, "SoftLeft") || !strnullcmp(key, "SoftRight"))
- /* Left and right soft key on KaiOS. */
+ else if (!strnullcmp(key, "SoftLeft"))
+ /* Left soft key on KaiOS. */
keyevent = CURSOR_SELECT2;
else if (!strnullcmp(key, "End"))
/*