Merge pull request #728 from Jipok/shortcuts_locale_fix

Keyboard layout independent shortcuts
This commit is contained in:
Adam 2021-12-11 15:18:47 -05:00 committed by GitHub
commit a1401efd1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,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;
}