From c36741f9c5f58f4efd80a1e8918a8356e9d0100f Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 4 Jan 2022 19:56:58 +0800 Subject: [PATCH] Translate more modifiers to GDK ones in xwidgets * src/xwidget.c (xw_translate_x_modifiers): Also handle Control and ShiftMask. --- src/xwidget.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xwidget.c b/src/xwidget.c index bfb666e5654..24dafa7d3c6 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -245,6 +245,10 @@ xw_translate_x_modifiers (struct x_display_info *dpyinfo, mods |= GDK_SUPER_MASK; if (modifiers & dpyinfo->hyper_mod_mask) mods |= GDK_HYPER_MASK; + if (modifiers & ControlMask) + mods |= GDK_CONTROL_MASK; + if (modifiers & ShiftMask) + mods |= GDK_SHIFT_MASK; return mods; } -- 2.39.2