mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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.
This commit is contained in:
2
emcc.c
2
emcc.c
@ -301,6 +301,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")) /* Left soft key on KaiOS */
|
||||
keyevent = CURSOR_SELECT2;
|
||||
else if (!strnullcmp(key, "End"))
|
||||
/*
|
||||
* We interpret Home, End, PgUp and PgDn as numeric keypad
|
||||
|
Reference in New Issue
Block a user