Hmm that sounds to me like it's an issue with non-ASCII Keyboard layouts
that need ASCII Keys aswell resulting in a double layout situation.
For German/French/Swiss keybaord layouts, that setup is not needed and
would confuse a lot of people who want to setup their computer.
As a pattern I would say:
Western European and Keyboards that use mostly ASCII Characters shall
only have their layout set.
Russian(Chineese?) Layouts that need US-English layout for interacting
with Computer should have both set like you described.
Are there other cases from other people around the world?
Greetings
Till
Am 29.10.2017 um 08:31 schrieb Alexander Pyhalov:
Hello.
I was investigating, why when I choose Russian keyboard layout during
installation, it changes language in lightdm to Russian by default, and
as it results
in Xorg layout being just 'ru', not 'us,ru' and doesn't set any switch
keys, you can stuck trying to enter login name in Russian.
The issue is evident and strange. I mean, I don't know what they should do.
Installer calls /usr/bin/kbd -s, and you can select your layout. Then HAL
in
https://github.com/illumos/illumos-gate/blob/f7877f5d39900cfd8b20dd673e5ccc1ef7cc7447/usr/src/cmd/hal/probing/xkb/probe-xkb.c#L334
sets input.x11_options.XkbLayout to "ru". When X starts and finds it, it
does what it was asked to do...
But we never set alternative layout. We never set toggle keys. So, user
can't switch to English.
For now I think I'll just change
/usr/bin/kbd -s
to
/usr/bin/kbd -s US-English
But it seems to be not very correct. I suppose, there could be users
with some strange keyboard layouts where this will not work.
How should we fix it? Should HAL prober be more intellectual and set XKB
layout to 'us,DETECTED_LAYOUT' and also set some switch keys?
------------------------------------------
illumos-discuss
Archives:
https://illumos.topicbox.com/groups/discuss/discussions/T83b946bc033900b2-M04e70a0f083c3f37ddd29590
Powered by Topicbox: https://topicbox.com