diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-10 19:05:11 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-10 19:07:47 +0000 |
| commit | ebb7b4277e2440e66b65ac910a6af143bd2833d8 (patch) | |
| tree | 82cabe4b895562a629060afd1bf805030066f92c | |
| parent | 9bcb06ee305455d24ab22f4c8f3556213da1a1ee (diff) | |
| download | puzzles-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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")) /* |