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.
This commit is contained in:
Ben Harris
2022-12-10 19:05:11 +00:00
parent 9bcb06ee30
commit ebb7b4277e

4
emcc.c
View File

@ -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"))
/*