9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] usb/kb: Home key produces "7"
@ 2013-03-01 11:20 yaroslav
  2013-03-01 14:09 ` erik quanstrom
  0 siblings, 1 reply; 6+ messages in thread
From: yaroslav @ 2013-03-01 11:20 UTC (permalink / raw)
  To: 9fans

The "Home" key produces rune "7" on certain USB keyboard. The fix is:

/n/sources/plan9/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) == 0x38))

  static void
  putmod(KDev *f, uchar mods, uchar omods, uchar mask, uchar esc, uchar sc)




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-04 12:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-01 11:20 [9fans] usb/kb: Home key produces "7" yaroslav
2013-03-01 14:09 ` erik quanstrom
2013-03-01 15:40   ` Yaroslav
2013-08-08 16:26     ` Yaroslav
2014-04-04  9:26       ` Yaroslav
2014-04-04 12:28         ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).