[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RP] non-working key
From: |
Shawn Betts |
Subject: |
Re: [RP] non-working key |
Date: |
Wed May 5 01:18:03 2004 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Joe Corneli <address@hidden> writes:
> > --with-x. However it does work with xev. This seems rather strange
> > to me. The key does work (sends keysym for six to the computer)
> > outside of X.
>
> Possibly six is defined as a modifier key?
>
>
> Not in the least. The only reference to it in the problematic
> xmodmap file was
>
> keycode 30 = 6 asciicircum
>
> (or, according to the output of xmodmap -pk)
>
> 30 0x0036 (6) 0x005e (asciicircum)
Hi Joe,
This seems to be a flaw in ratpoison's key grabbing and maybe X11's
keysym->keycode mapping. Say you try this:
definekey top at echo foo
When ratpoison converts the at keysym into a keycode it gets turned
into the same keycode that 2 gets turned into, but X doesn't tell
ratpoison that you have to press Shift to get the keysym back.
ratpoison grabs the 2 key but checks to see if the @ key was
pressed. And so 'foo' never gets displayed.
The short-term answer and maybe the only way is to add another
modifier: Sh. So the above command would turn into:
definekey top Sh-2 echo foo
If anyone knows some X11 black magic to convert the keysym at to Shift +
keycode I'd love to know!
The man pages are pretty dry.
On a side note, you can now run:
definekey top T echo foo
I use XConvertCase to check whether Shift needs to be added, but that
doesn't work for keys not subject to case conversion.
-Shawn
- Re: [RP] non-working key,
Shawn Betts <=
Re: [RP] non-working key, Joe Corneli, 2004/05/05