From: Po Lu Date: Tue, 4 Jan 2022 11:56:58 +0000 (+0800) Subject: Translate more modifiers to GDK ones in xwidgets X-Git-Tag: emacs-29.0.90~3260 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c36741f9c5f58f4efd80a1e8918a8356e9d0100f;p=emacs.git Translate more modifiers to GDK ones in xwidgets * src/xwidget.c (xw_translate_x_modifiers): Also handle Control and ShiftMask. --- 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; }