aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2021-12-18 15:11:50 -0500
committerAdam Harrison <adamdharrison@gmail.com>2021-12-18 15:11:50 -0500
commitcb13afd7490ee738b9ea17dbfbda75edf922fea6 (patch)
tree3cd2d03f7c64664ef2c65b02e8d01a0a92b7606e
parentb4384eb49d8a57eaded6989eb795e8098a323a52 (diff)
downloadlite-xl-cb13afd7490ee738b9ea17dbfbda75edf922fea6.tar.gz
lite-xl-cb13afd7490ee738b9ea17dbfbda75edf922fea6.zip
Changed operator to be more correct for utf8.
-rw-r--r--src/api/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/system.c b/src/api/system.c
index cff28ace..cbddd5f9 100644
--- a/src/api/system.c
+++ b/src/api/system.c
@@ -111,7 +111,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));