mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 15:41:30 -07:00
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:
4
emcc.c
4
emcc.c
@ -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"))
|
||||
/*
|
||||
|
Reference in New Issue
Block a user