From 21dddf34f85287d74f1aa828c994c68905259588 Mon Sep 17 00:00:00 2001 From: Jipok Date: Sat, 11 Dec 2021 23:42:15 +0500 Subject: [PATCH] Keyboard layout independent shortcuts --- 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 0ebf78f1..db61989b 100644 --- a/src/api/system.c +++ b/src/api/system.c @@ -104,7 +104,7 @@ static const char *get_key_name(const SDL_Event *e, char *buf) { !(e->key.keysym.mod & KMOD_NUM)) { return numpad[scancode - SDL_SCANCODE_KP_1]; } else { - strcpy(buf, SDL_GetKeyName(e->key.keysym.sym)); + strcpy(buf, SDL_GetScancodeName(e->key.keysym.scancode)); str_tolower(buf); return buf; }