Subject: wscons and more than two modifier keys
To: None <firstname.lastname@example.org>
From: Quentin Garnier <email@example.com>
Date: 04/07/2005 15:32:40
Content-Type: text/plain; charset=us-ascii
Currently, wscons is limited to two key modifiers, Shift and what is
usually called AltGr.
It is a problem on hpcarm, because the Jornada 72x series will use
more than those two modifiers: it has Shift, another key called Fn on
the US/intl layout, and a third one called Alt.
It would be possible to map everything with Fn and not use Alt as a
modifier, however that doesn't match what the keyboard colors show.
Adding a modifier to wscons is not very difficult and we would keep
compatibility with all the existing keymaps. However, maybe we want
something more flexible for modifier keys.i
AFAIK, XFree86 has provision for at least 5 of them. Currently we
have a full matrix of the modifier positions, with 5 modifiers we'd
need a 2x2x2x2x2 matrix which would be almost always empty.
To sum up the options:
(a) Forget about the idea. In PeeCee we trust, although the pc105
layout includes the infamous Windows key, which is an additional
modifier already, so we can't take advantage of it in wscons.
(b) Add a modifier, reformat the code so it takes a 2x2x2 matrix.
(c) Do things differently, possibly using flags so that we don't
have to fill out 8 entries for every single key.
While (b) keeps compatibility with existing keymaps, both (b) and
(c) will break userland API, so we might as well choose a saner
Quentin Garnier - firstname.lastname@example.org - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
-----END PGP SIGNATURE-----