Bug#981115: please support multiple compose keys in keyboard-configuration
On Tue, Jan 26, 2021 at 05:24:14PM +0100, Martin wrote:
> Package: keyboard-configuration
> Version: 1.200
> Severity: wishlist
> It is convenient to have compose keys for both hands, e.g.
> capslock and ralt, similar to the two shift keys.
> When running
> $ sudo dpkg-reconfigure keyboard-configuration
> users can only select one compose key.
> I assume, that multiple comma separated values would work.
It is not that simple. While xkboptions supports specifying the compose
option multiple times, it is not a comma separated list. Right now
the config for keyboard-configuration stores a single value for the
compose key in the debconf database and is able to match that against a
simple switch statement. If it was changed to a comma separated list,
it would require splitting before being able to match each key against
the switch statement. The code that turns the compose key value into
the right xkboptions would need to be expanded to handle multiple values
in a loop. Quite a lot of current assumptions would need to be tossed
away and replaced with code that is quite a bit more complicated. I am
sure it could be done but I am not sure if anyone would be willing to
put in the effort for something that is probably very rarely wanted.
Simply manually putting in the config instead seems like a lot less work.