9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: yaroslav <yarikos@gmail.com>
To: 9fans@9fans.net
Subject: [9fans] usb/kb: Home key produces "7"
Date: Fri,  1 Mar 2013 13:20:04 +0200	[thread overview]
Message-ID: <bf78fd19b58d651c0cc8a15ff165fe5a@isd.dp.ua> (raw)

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)




             reply	other threads:[~2013-03-01 11:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-01 11:20 yaroslav [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bf78fd19b58d651c0cc8a15ff165fe5a@isd.dp.ua \
    --to=yarikos@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).