Support mod4 (windows key) in mouse bindings too.

This commit is contained in:
oga 2008-06-25 22:40:27 +00:00
parent 05b17bf803
commit a6ec6cd9e9
2 changed files with 7 additions and 1 deletions

4
conf.c
View File

@ -434,6 +434,10 @@ conf_mousebind(struct conf *c, char *name, char *binding)
strchr(name, 'S') < strchr(name, '-')) strchr(name, 'S') < strchr(name, '-'))
current_binding->modmask |= ShiftMask; current_binding->modmask |= ShiftMask;
if (strchr(name, '4') != NULL &&
strchr(name, '4') < strchr(name, '-'))
current_binding->modmask |= Mod4Mask;
substring = strchr(name, '-') + 1; substring = strchr(name, '-') + 1;
if (strchr(name, '-') == NULL) if (strchr(name, '-') == NULL)

View File

@ -15,7 +15,7 @@
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\" .\"
.\" The following requests are required for all man pages. .\" The following requests are required for all man pages.
.Dd $Mdocdate: June 17 2008 $ .Dd $Mdocdate: June 25 2008 $
.Dt CWMRC 5 .Dt CWMRC 5
.Os .Os
.Sh NAME .Sh NAME
@ -141,6 +141,8 @@ The Control key.
The Meta key. The Meta key.
.It S .It S
The Shift key. The Shift key.
.It 4
The Mod4 key (normally the windows key).
.El .El
.Pp .Pp
The The