[gtk/gtk-3-24: 2/6] gdkkeys-win32: Add keysym mapping for capslock key




commit 404229ad758561c8c0ac313fc211a60b739cb2bd
Author: Philip Zander <philip zander gmail com>
Date:   Sun Jan 9 09:09:35 2022 +0100

    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 19bc721ce0..85bcce224b 100644
--- a/gdk/win32/gdkkeys-win32.c
+++ b/gdk/win32/gdkkeys-win32.c
@@ -320,7 +320,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)                                                      \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]