On środa 09 październik 2002 04:51 am, you wrote:
> Kuba Ober wrote:
> [...]
>
> > 3. I personally don't care, but for many others it *is* a real big issue:
> > why on earth doesn't one show the real modifiers in the UI, but the
> > logical ones? Logical modifiers are for people who deal with xlib, it's
> > nothing for normal users to know about. If the logical "Meta" modifier is
> > an Alt key, why not just show it like that? I presume it's very easy to
> > determine to what key the meta is bound to. Meta is an X concept. How is
> > the user supposed to know that:
> > - M-m something means Meta-m something, and that
> > - Meta on his particular system means Alt?
>
> Actually, lyx can't know that it says "alt" on that key.

At least on the PC's it actually can. Obviously unless you've modified the
keycaps on your keyboard. In any event, the scancode sent by the keybord is
called "Alt", and this shows up when you use xmodmap. So the information is
readily available and up for grabs. Via xmodmap you're able to assign X key
"identities" to particular scancodes arriving from the keyboard. So the X API
to do that is there.

If somebody has separate alt and meta, then on a PC the meta still will be
assigned to say windows key as there's no meta on the keyboard. Only if
he/she is on a platform that actually has the meta key and the meta key is
used as meta modifier in X then we should display Meta in the menus. In any
case the API calls will tell you all you need to know.

Cheers, Kuba Ober

Reply via email to