Seperates the control keys and exposes the gui keys. Reference: /n/sources/patch/maybe/usbkb-ctrl-gui Date: Mon Jan 25 20:52:02 CET 2010 Signed-off-by: 9@trstn.net --- /sys/src/cmd/usb/kb/hid.h Mon Jan 25 20:46:02 2010 +++ /sys/src/cmd/usb/kb/hid.h Mon Jan 25 20:46:00 2010 @@ -53,6 +53,8 @@ SCrshift = 0x36, SCctrl = 0x1d, SCcompose = 0x38, + SClgui = 0x5b, + SCrgui = 0x5c, Keyup = 0x80, /* flag bit */ Keymask = 0x7f, /* regular scan code bits */ }; --- /sys/src/cmd/usb/kb/kb.c Mon Jan 25 20:46:07 2010 +++ /sys/src/cmd/usb/kb/kb.c Mon Jan 25 20:46:04 2010 @@ -349,11 +349,14 @@ int fd; fd = f->in->fd; - putmod(fd, buf[0], obuf[0], Mctrl, 0, SCctrl); + putmod(fd, buf[0], obuf[0], (1<