From ebb7b4277e2440e66b65ac910a6af143bd2833d8 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 10 Dec 2022 19:05:11 +0000 Subject: [PATCH] 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. --- emcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emcc.c b/emcc.c index d970251..3ff66d5 100644 --- a/emcc.c +++ b/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")) /*