From 82f8f878bcc5ff58872d6dee2a5703b19640fe2a Mon Sep 17 00:00:00 2001 From: Philip Zander Date: Wed, 12 Jan 2022 21:19:10 +0100 Subject: [PATCH] gdkkeys-win32: Add keysym mapping for capslock key Add missing mapping between VK_CAPITAL and GDK_KEY_Caps_Lock, so applications get a meaningful keyval rather than ffffff. --- gdk/win32/gdkkeys-win32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdk/win32/gdkkeys-win32.c b/gdk/win32/gdkkeys-win32.c index 1530b87548..43de7eb7d6 100644 --- a/gdk/win32/gdkkeys-win32.c +++ b/gdk/win32/gdkkeys-win32.c @@ -322,7 +322,8 @@ clear_keyboard_layout_info (gpointer data) map (VK_SCROLL, GDK_KEY_Scroll_Lock) \ map (VK_RSHIFT, GDK_KEY_Shift_R) \ map (VK_RCONTROL, GDK_KEY_Control_R) \ - map (VK_RMENU, GDK_KEY_Alt_R) + map (VK_RMENU, GDK_KEY_Alt_R) \ + map (VK_CAPITAL, GDK_KEY_Caps_Lock) #define DEFINE_DEAD(map) \