From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 4 Apr 2014 12:26:53 +0300 Message-ID: From: Yaroslav To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] usb/kb: Home key produces "7" Topicbox-Message-UUID: d6b61fea-ead8-11e9-9d60-3106f5b1d025 finally got it complete: /n/sources/patch/usbkb-map 2013-08-08 19:26 GMT+03:00 Yaroslav : > It gets even weirder: another hack to enable F11/F12. > > /n/dump/2013/0808/sys/src/cmd/usb/kb/kb.c:473,479 - > /sys/src/cmd/usb/kb/kb.c:473,479 > } > > > - #define hasesc1(sc) (((sc) >= 0x47) || ((sc) == 0x38)) > + #define hasesc1(sc) (((sc) >= 0x47 && (sc) < 0x57) || ((sc) > 0x58) > || ((sc) == 0x38)) > > static void > putmod(KDev *f, uchar mods, uchar omods, uchar mask, uchar esc, uchar sc) > > 2013/3/1 Yaroslav : >> >>> thanks. that one had been bugging me. looks like it works here. >> >> >> /n/sources/patch/usb-khome >> > > -- > - Yaroslav -- - Yaroslav