Can't map keys with keycodes > 127 to modifiers?
Marius Gedminas
mgedmin at b4net.lt
Wed Sep 12 04:28:31 PDT 2007
On Wed, Sep 12, 2007 at 11:42:56AM +0100, Daniel Stone wrote:
> On Wed, Sep 12, 2007 at 01:07:57PM +0300, Marius Gedminas wrote:
> > The Menu key on a USB keyboard, the one that sends keycode 117, is also mapped
> > to ISO_Level3_Shift. It autorepeats, but despite that the state bit flips to
> > 0x80 while I hold it down. xmodmap shows both 0xe3 (227) and 0x75 (117) among
> > the keys mapped to mod5.
> >
> > The only difference I can think of is that one keycode is < 128, while
> > the other one needs full 8 bits. Just a blind guess, but could the XKB
> > code be using signed chars somewhere and sign-extending them to ints?
>
> This is brilliantly awesome. XKB lamely attempts to swap char and int
> everywhere, but it's pretty fascist about using signed char, last I
> checked. Could you please file a bug, and assign it to me?
https://bugs.freedesktop.org/show_bug.cgi?id=12401
I've also found my earlier attempt to report this problem, misfiled to
xkeyboard-config, and marked it as duplicate.
(I wouldn't mind eyeballing the relevant source code files, if I knew
which ones to look at.)
Marius Gedminas
--
<phrakture> i learned vim by reading the source code. am I hardcore yet?
<Axioplase> phrakture: not enought yet... read it rot13'd, and you'll be
hardcore ^^
<phrakture> I read it as analog output on an oscilliscope
<mgedmin> rot13, bah, try reading the gzipped source tarball
<Zathrus> encrypted.
<lack> standing on your head.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20070912/be4ad3e9/attachment.pgp>
More information about the xorg
mailing list