From 05b17bf803f84fd7bc12c96a0eff32b515794253 Mon Sep 17 00:00:00 2001 From: oga Date: Wed, 25 Jun 2008 22:38:36 +0000 Subject: [PATCH] Support shift in mouse bindings. There's really no reason not to. tested by johan@ and todd@. --- conf.c | 4 ++++ cwmrc.5 | 2 ++ 2 files changed, 6 insertions(+) diff --git a/conf.c b/conf.c index 1972287..3078321 100644 --- a/conf.c +++ b/conf.c @@ -430,6 +430,10 @@ conf_mousebind(struct conf *c, char *name, char *binding) strchr(name, 'M') < strchr(name, '-')) current_binding->modmask |= Mod1Mask; + if (strchr(name, 'S') != NULL && + strchr(name, 'S') < strchr(name, '-')) + current_binding->modmask |= ShiftMask; + substring = strchr(name, '-') + 1; if (strchr(name, '-') == NULL) diff --git a/cwmrc.5 b/cwmrc.5 index fe2f205..9a421ae 100644 --- a/cwmrc.5 +++ b/cwmrc.5 @@ -139,6 +139,8 @@ The following modifiers are recognised: The Control key. .It M The Meta key. +.It S +The Shift key. .El .Pp The