[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Alt_L and Alt_R are not the same
From: |
Alex Schroeder |
Subject: |
Re: Alt_L and Alt_R are not the same |
Date: |
Wed, 03 Oct 2001 02:10:16 +0200 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 |
"Ehud Karni" <ehud@unix.simonwiesel.co.il> writes:
> Let me guess that you work with German keyboard where the right-Alt is
> used for composing German characters. I think that Emacs never gets
> the events of pressing/releasing the right-Alt.
>
> Can you check with `xev' what are the events when you press right-Alt
> + q and compare it to pressing left-Alt + q ?
Actually, you are right. The right Alt ("Alt Gr") is used to compose
the tilde, the pipe, the at sign, the backslash, and super script 2
and 3. These currently don't work anymore -- and I hadn't noticed for
several days. I will report back when the rest of the environment
works again and Emacs still doesn't do the right thing.
For the record, though, here something I pasted from the xev output as
I pressed the left and right Alt keys. Note that the two keys are not
labeled "Alt" and "Alt Gr" (those I mapped to Meta_L and Meta_R).
Keycodes 115 and 116 refer to the Windows keys (on my keyboard they
show a penguin instead). As I said, I remapped them as follows:
>> I just remapped two of my keys in .Xmodmap as follows:
>>
>> keycode 115 = Alt_L
>> keycode 116 = Alt_R
And when I press them in xev, this is what happens. The xev window is
getting the events.
KeyRelease event, serial 27, synthetic NO, window 0x1800001,
root 0x26, subw 0x0, time 1340261805, (54,-14), root:(799,73),
state 0x40, keycode 115 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 characters: ""
KeyPress event, serial 27, synthetic NO, window 0x1800001,
root 0x26, subw 0x0, time 1340262492, (54,-14), root:(799,73),
state 0x0, keycode 116 (keysym 0xffea, Alt_R), same_screen YES,
XLookupString gives 0 characters: ""
Alex.
--
http://www.geocities.com/kensanata/
Coffee should be black as hell, strong as death and sweet as love.
-- Turkish proverb