Re: Getting and ALT key
Re: Getting and ALT key
- Subject: Re: Getting and ALT key
- From: Bill Moseley <email@hidden>
- Date: Wed, 31 Jan 2007 22:08:12 -0800
On Wed, Jan 31, 2007 at 06:55:54PM -0800, Itai Seggev wrote:
> I've now tested this, and the following snippet in ~/.Xmodmap does, in
> fact, turn the Enter key into a usable right-alt key. I successuly
> used Enter-Mouse_button (emulated Alt-Left_click) to drag windows in
> kwin and Enter-Command-Mouse_button (emulates Alt-Right_click) to
> resize them.
Thanks very much for looking at this. I couldn't get it to work,
though.
So I did this:
moseley@ibook:~$ cat .Xmodmap
! change enter key to right alt key
keycode 60 = Alt_R
add mod1 = Alt_R
Then I ran xmodmap .Xmodmap and then I see the key is mapped:
(Do you have an xmodmap command to load .Xmodmap in your .xinitrc
file?)
moseley@ibook:~$ xmodmap -display :0.0
xmodmap: up to 3 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x40), Shift_R (0x44)
lock Caps_Lock (0x41)
control Control_L (0x43), Control_R (0x46)
mod1 Mode_switch (0x42), Mode_switch (0x45), Alt_R (0x3c)
mod2 Meta_L (0x3f)
mod3
mod4
mod5
And indeed xev shows Alt_R when I push the enter key (which
unfortunately isn't working very well mechanically on this laptop).
But, pressing the enter key and mouse doesn't seem to have any effect
on Icewm. Alt_R + Mouse on my Linux laptop running icewm it does
work to move the window.
I installed icewm via fink, so maybe it was compiled in a way not to
support that feature.
I just wish I understood the process of how the keycodes get mapped to
buttons and then to the application better -- it would make it easier
to debug. Seems like they xmodmap change does generate the alt +
mouse, but I'm not sure how to know if the icewm is seeing that or
not.
Thanks,
--
Bill Moseley
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden