Meta key not working
Meta key not working
- Subject: Meta key not working
- From: Yang Zhang <email@hidden>
- Date: Thu, 12 Dec 2013 14:33:26 -0800
I just installed XQuartz on Mountain Lion, but I can't get the alt
(option) key to be the meta key, an important modified key for a whole
host of X-based applications.
I tried disabling "Enable key equivalents under X11" but that doesn't
seem to affect anything. The only thing I could do to affect anything
was enabling "Option keys send Alt_L and Alt_R," but Meta doesn't kick
in—e.g. alt-b just types a literal 'b'.
The way I'm testing this is just by running xterm and pressing alt-b
and alt-f to make sure the cursor is jumping forward/backward by a
word (expecting same behavior as esc-then-b or esc-then-f).
I've been doing a bunch of Googling on this but (surprisingly) haven't
found anything promising, mostly about random folks' problems with
their own personal xmodmaps.
I tried:
http://xquartz.macosforge.org/trac/wiki/KeyboardMapping
But that behaves simliarly to "Option keys send Alt_L and Alt_R"—I
just get the literal keys, and still no meta functionality.
(I also tried this:
http://stackoverflow.com/questions/14379566/change-meta-to-option-key-when-using-xquartz-on-mac-to-open-emacs-installed-on-r
but then I get:
$ cat ~/.xmodmap
clear Mod1
keycode 63=Control_L
keycode 71=Control_R
keycode 66=Meta_L
keycode 69=Meta_R
add Mod1 = Meta_L Meta_R
add Control = Control_L Control_R
$ xmodmap ~/.xmodmap
X Error of failed request: BadValue (integer parameter out of range
for operation)
Major opcode of failed request: 118 (X_SetModifierMapping)
Value in failed request: 0x17
Serial number of failed request: 16
Current serial number in output stream: 16
And, unlike for the OP, it doesn't change anything for me when I start
a new xterm. But it seems to be due to Control—when I remove those
lines, the config file is basically the same as the prior one.)
I try running xev and I can confirm that when I press the alt key I
see keycode 66 (Meta_L), which is consistent with the xmodmaps. So I
don't know what's going on.
Any help would be greatly appreciated. Thanks!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden