9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] usb/kb: Home key produces "7"
Date: Fri,  1 Mar 2013 09:09:26 -0500	[thread overview]
Message-ID: <cdd0a0d753f27db65ce3f6a7989d62e4@brasstown.quanstro.net> (raw)
In-Reply-To: <bf78fd19b58d651c0cc8a15ff165fe5a@isd.dp.ua>

On Fri Mar  1 06:21:01 EST 2013, yarikos@gmail.com wrote:
> 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)

thanks.  that one had been bugging me.  looks like it works here.

- erik



  reply	other threads:[~2013-03-01 14:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-01 11:20 yaroslav
2013-03-01 14:09 ` erik quanstrom [this message]
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=cdd0a0d753f27db65ce3f6a7989d62e4@brasstown.quanstro.net \
    --to=quanstro@quanstro.net \
    --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).