projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
377bf26
)
Translate more modifiers to GDK ones in xwidgets
author
Po Lu
<luangruo@yahoo.com>
Tue, 4 Jan 2022 11:56:58 +0000
(19:56 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Tue, 4 Jan 2022 11:56:58 +0000
(19:56 +0800)
* src/xwidget.c (xw_translate_x_modifiers): Also handle Control
and ShiftMask.
src/xwidget.c
patch
|
blob
|
history
diff --git
a/src/xwidget.c
b/src/xwidget.c
index bfb666e56549ff820c6b8e617281957aadbf265e..24dafa7d3c6dfc5ad01c2edc0ed69010a60f1e4f 100644
(file)
--- 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;
}