help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: super and hyper keys acting funny in emacs


From: J. David Boyd
Subject: Re: super and hyper keys acting funny in emacs
Date: Mon, 24 Jun 2013 09:21:45 -0400
User-agent: Gnus/5.1299999999999999 (Gnus v5.13) Emacs/24.3 (cygwin)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>     state 0x40, keycode 66 (keysym 0xffed, Hyper_L), same_screen YES,
> [...]
>>     state 0x40, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
>
> Notice how the "state" is the same: both your Hyper_L and Super_L keys
> are assigned to the same modifier (presumably "Hyper").
> Take a look at the output of "xmodmap".
>
> Yes, X11 has an additional level of mapping from what you expect: the
> name of the key does not in itself determine if it's a modifier and
> which modifier it is.  Instead, there's an additional mapping from keys
> to modifiers.
>
>
>         Stefan

Thanks for the tip.  I was able to create an .Xmodmap file, containing

keycode 115 = Super_L
remove mod4 = Super_L
add mod3 = Super_L
keycode 117 = Super_R
remove mod4 = Super_R
add mod3 = Super_R

and now, after running that, emacs sees Hyper and Super as different keys.
I'm very happy.

Dave




reply via email to

[Prev in Thread] Current Thread [Next in Thread]