summaryrefslogtreecommitdiff
path: root/src/xwidget.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-01-04 19:56:58 +0800
committerPo Lu <luangruo@yahoo.com>2022-01-04 19:56:58 +0800
commitc36741f9c5f58f4efd80a1e8918a8356e9d0100f (patch)
treee910eaa47597546d460fde2a6939d1d91835b10c /src/xwidget.c
parent377bf26ebe292d16b26043c566a7c00c452caf27 (diff)
downloademacs-c36741f9c5f58f4efd80a1e8918a8356e9d0100f.tar.gz
emacs-c36741f9c5f58f4efd80a1e8918a8356e9d0100f.tar.bz2
emacs-c36741f9c5f58f4efd80a1e8918a8356e9d0100f.zip
Translate more modifiers to GDK ones in xwidgets
* src/xwidget.c (xw_translate_x_modifiers): Also handle Control and ShiftMask.
Diffstat (limited to 'src/xwidget.c')
-rw-r--r--src/xwidget.c4
1 files changed, 4 insertions, 0 deletions
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;
}