SlackBuildsOrg/system/yeahconsole/52-yeahkeys.patch
B. Watson 2a6574b8d7
system/yeahconsole: Update man page.
Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2021-10-13 00:51:31 +07:00

21 lines
652 B
Diff

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;