* modifier-1 plus space generates compose state?
@ 1995-06-29 4:00 John Kohl
0 siblings, 0 replies; only message in thread
From: John Kohl @ 1995-06-29 4:00 UTC (permalink / raw)
Richard Stallman inquired about why M-SPC on DEC OSF/1 introduces the
compose character sequence.
As far as I can tell it has to do with the way the X libraries (X11R5
vintage) are set up on DEC OSF/1, and how they do XLookupString
processing. M-SPC also turns on composition mode inside xterm. I do
not know of a way to turn this off with xmodmap or X resources.
My xmodmap output is:
xmodmap: up to 3 keys per modifier, (keycodes in parentheses):
shift Shift_L (0xae), Shift_R (0xab)
lock Caps_Lock (0x74)
control Control_L (0xaf), Control_R (0xb0)
mod1 Meta_L (0xac), Meta_L (0xb1), Alt_R (0xb2)
mod2 Multi_key (0xad)
mod3
mod4
mod5 Alt_R (0xb2)
Both Alt_R and Meta_L induce this behavior from the spacebar; if I
remove Alt_R from modifier 1, it no longer induces this behavior.
If I convert some other key (say, what's normally KP_0) to Alt_L, and
add it to modifier 1, then it too induces the spacebar composition.
There is also a separate keysym (Multi_key) which I use on a different
key on my keyboard, and it acts just fine--like a normal "dead key" that
introduces a compose sequence.
I think this is just something that DEC wants its X libraries to
support--I recall that you could do composition on its VT220 keyboards
in a similar way by hitting Compose-Space and then the two characters to
be composed.
So, my questions are:
* is this desired behavior from the DEC X11 libraries?
* is there a way to disable it?
#ifdef OSF1
/* OSF/1 XLookupString is also too eager with
certain meta/alt bits, particularly for thinks like
Meta-SPC which will start compose character processing
if you don't mask out the meta stuff. */
event.xkey.state &= ~(ControlMask |
dpyinfo->meta_mod_mask |
dpyinfo->alt_mod_mask |
dpyinfo->super_mod_mask |
dpyinfo->hyper_mod_mask);
#else
event.xkey.state &= ~ControlMask;
#endif
nbytes = XLookupString (&event.xkey, copy_buffer,
80, &keysym, &compose_status);
--
John Kohl <jtk@atria.com> or <jtkohl@mit.edu>
working for but not representing: Atria Software
sometimes hacking on: NetBSD/i386
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-06-29 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-06-29 4:00 modifier-1 plus space generates compose state? John Kohl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox