ref: 4fdcc5497503658324fda2e0073d830276b24b60
parent: ee5b02b0ca11459a5fa5eddf94f0193e6dbf8706
author: Ben Harris <bjh21@bjh21.me.uk>
date: Sat Nov 5 13:39:42 EDT 2022
js: Make SoftRight act as CURSOR_SELECT2 as well This way, the front end can intercept one of SoftLeft and SoftRight as a menu key and leave the other one for the puzzle. And while we don't have a working menu, I can use whichever is more convenient.
--- a/emcc.c
+++ b/emcc.c
@@ -301,7 +301,8 @@
keyevent = CURSOR_RIGHT;
else if (!strnullcmp(key, "ArrowDown") || !strnullcmp(key, "Down"))
keyevent = CURSOR_DOWN;
- else if (!strnullcmp(key, "SoftLeft")) /* Left soft key on KaiOS */
+ else if (!strnullcmp(key, "SoftLeft") || !strnullcmp(key, "SoftRight"))
+ /* Left and right soft key on KaiOS. */
keyevent = CURSOR_SELECT2;
else if (!strnullcmp(key, "End"))
/*