blob: 78b2d816ceb714bcb803740b0258a032acc58db3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Description: Recognize Shift key, Meta, and Super key names
Author: Decklin Foster <decklin@red-bean.com>
Forwarded: mailto:knorke@phrat.de
Bug-Debian: https://bugs.debian.org/506062
--- a/yeahconsole.c
+++ b/yeahconsole.c
@@ -294,9 +294,11 @@
if (strstr(opt, "Control"))
modmask = modmask | ControlMask;
- if (strstr(opt, "Alt"))
+ if (strstr(opt, "Shift"))
+ modmask = modmask | ShiftMask;
+ if (strstr(opt, "Meta") || strstr(opt, "Alt"))
modmask = modmask | Mod1Mask;
- if (strstr(opt, "Win"))
+ if (strstr(opt, "Super") || strstr(opt, "Win"))
modmask = modmask | Mod4Mask;
if (strstr(opt, "None"))
modmask = 0;
|