Support shift in mouse bindings. There's really no reason not to.

tested by johan@ and todd@.
This commit is contained in:
oga 2008-06-25 22:38:36 +00:00
parent 2dfd021f8b
commit 05b17bf803
2 changed files with 6 additions and 0 deletions

4
conf.c
View File

@ -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)

View File

@ -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