ref: ee5b02b0ca11459a5fa5eddf94f0193e6dbf8706
parent: ad9ee5a52470b864f6914ba9b5c2c9ae2d6ab072
author: Ben Harris <bjh21@bjh21.me.uk>
date: Wed Nov 2 18:22:46 EDT 2022
js: Map the "SoftLeft" key to CURSOR_SELECT2 This is the left soft key on KaiOS phones. The centre soft key already sends "Enter", which eventually becomes CURSOR_SELECT. The right soft key I'm planning to use to open the menu.
--- a/emcc.c
+++ b/emcc.c
@@ -301,6 +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 */
+ keyevent = CURSOR_SELECT2;
else if (!strnullcmp(key, "End"))
/*
* We interpret Home, End, PgUp and PgDn as numeric keypad