[Y-devel] Key mappings
Rupert Mazzucco maz at ap.univie.ac.at
Fri Feb 27 20:42:12 GMT 2004
On Fri, 27 Feb 2004, Maurice van der Pot wrote:
> > The question is, how many "special keys" do we think
> > should be standardised? There is quite a bunch of
> > non-alphanumeric keys on every modern keyboard, maybe
> > it would be better to use them for real "standards".
>
> I'm not sure what you mean with 'real "standards"', Rupert.
It occurred to me that, while I voted for great flexibility on
a low level, I really only thought of remapping the alphanumeric
(and an. modified) keys. There is a set of keys that probably
should never change their meaning, like modifiers, esc, ctrl,
function keys, return, backspace, begin/end, pause, print, pg up/down
etc., because they have a kind of meta-purpose.
So they could be required to never be remapped. In this sense
they would be standardised.
> I think that for each type of key there should be a unique
> identifying value (what is called a KeySym in X).
(But that is only unique if the keymap doesn't change. The
invariable identifier is the keycode.)
> multiple keymaps. Do you generally expect copy/paste to be mapped
> to the same physical keys when you switch keymaps?
>
> If I ask myself this question and I look at the azerty and qwerty
> layouts for a moment, I'm pretty sure that if I were able to type
> fluently on both of them, I'd expect things to be bound to 'a' or
> 'q' no matter where they may be moved to by a change in keymap.
Yes, but it seems that you are talking about switching keyboards,
not keymaps.
I was thinking about eg switching from a latin to a greek keymap,
so that I would have "alpha" where there used to be "a". What I
suggested was to write then "ctrl+alpha" in the menu where there
was "ctrl+a" before.
But obviously I wasn't thinking clearly, because this is nonsense.
There would still be written "a" on the key, and this is what counts.
There is, of course, the possibility of a pathological remapping that
moves the logical "a" to the physical "b" and vice versa. Then
confusion would be complete. Should probably be forbidden and enforced.
It seems to me now that the server needs to know, on the lowest level,
not only the available keycodes, but also what is actually printed on
the key that corresponds to a certain keycode (or, while we're at it,
make that a complete physical layout). It would be quite annoying if,
after much keymap switching, an application for some control purpose
demanded pressing <some fancy unicode char> that the user can't actually
find on the board by looking at what's written on the keys!
Regards,
Rupert
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved