From 3e7ae33597e4d62fad6f7fcd3d008a6f73e7b138 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sat, 18 Dec 2021 15:11:50 -0500 Subject: [PATCH] Changed operator to be more correct for utf8. --- src/api/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/system.c b/src/api/system.c index 2c1ca63c..1e5734d7 100644 --- a/src/api/system.c +++ b/src/api/system.c @@ -109,7 +109,7 @@ static const char *get_key_name(const SDL_Event *e, char *buf) { then we transmit it as it is. But we also need to support shortcuts in other languages, so for non-Latin characters we pass the scancode that matches the letter in the QWERTY layout. */ - if (e->key.keysym.sym <= 128) + if (e->key.keysym.sym < 128) strcpy(buf, SDL_GetKeyName(e->key.keysym.sym)); else strcpy(buf, SDL_GetScancodeName(scancode));