From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 8 Aug 2013 19:26:36 +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: 6fbb11ec-ead8-11e9-9d60-3106f5b1d025 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