SDL: wayland: Add mappings for the Escape and NumLock keys

From 467c82c77113ed4d77325d0b961a1f5bb7ac9c60 Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Fri, 23 Sep 2022 12:31:40 -0400
Subject: [PATCH] wayland: Add mappings for the Escape and NumLock keys

The XKB keysym to SDL keycode mappings were missing for the Escape and NumLock keys, which prevented them from being remapped. Add them to the table so that the remapping of these keys will work.
---
 src/video/wayland/SDL_waylandevents.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c
index ec2f514eef9..308e41a3116 100644
--- a/src/video/wayland/SDL_waylandevents.c
+++ b/src/video/wayland/SDL_waylandevents.c
@@ -73,6 +73,8 @@ static const struct {
     xkb_keysym_t keysym;
     SDL_KeyCode keycode;
 } KeySymToSDLKeyCode[] = {
+    { XKB_KEY_Escape, SDLK_ESCAPE },
+    { XKB_KEY_Num_Lock, SDLK_NUMLOCKCLEAR },
     { XKB_KEY_Shift_L, SDLK_LSHIFT },
     { XKB_KEY_Shift_R, SDLK_RSHIFT },
     { XKB_KEY_Control_L, SDLK_LCTRL },