SDL: Fixed SDL_GetDefaultScancodeFromKey()

From 725b95dc84ef124fd748b44d4b4a358fa6ef44a3 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 5 Aug 2024 19:12:38 -0700
Subject: [PATCH] Fixed SDL_GetDefaultScancodeFromKey()

---
 src/events/SDL_keymap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/events/SDL_keymap.c b/src/events/SDL_keymap.c
index 4f94170b7c13d..de5a63312bc58 100644
--- a/src/events/SDL_keymap.c
+++ b/src/events/SDL_keymap.c
@@ -613,7 +613,7 @@ static SDL_Scancode SDL_GetDefaultScancodeFromKey(SDL_Keycode key, SDL_Keymod *m
         if (modstate) {
             *modstate = SDL_KMOD_SHIFT;
         }
-        return (SDL_Scancode)(SDL_SCANCODE_A + key - 'Z');
+        return (SDL_Scancode)(SDL_SCANCODE_A + key - 'A');
     }
 
     for (int i = 0; i < SDL_arraysize(normal_default_symbols); ++i) {