JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Add control to known keys. from Juergen Daubert <jue@jue.li>
authorMarco Peereboom <marco@conformal.com>
Thu, 28 May 2009 19:40:13 +0000 (19:40 +0000)
committerMarco Peereboom <marco@conformal.com>
Thu, 28 May 2009 19:40:13 +0000 (19:40 +0000)
scrotwm.c

index ae5fd0d..3f48ca6 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -2249,6 +2249,8 @@ parsekeys(char *keystr, unsigned int currmod, unsigned int *mod, KeySym *ks)
                        *mod |= Mod4Mask;
                else if (strncasecmp(name, "SHIFT", SWM_MODNAME_SIZE) == 0)
                        *mod |= ShiftMask;
+               else if (strncasecmp(name, "CONTROL", SWM_MODNAME_SIZE) == 0)
+                       *mod |= ControlMask;
                else {
                        *ks = XStringToKeysym(name);
                        XConvertCase(*ks, ks, &uks);