#993030 plasma-desktop: keyboard layout swaps third level characters

Package:
plasma-desktop
Source:
plasma-desktop
Description:
Tools and widgets for the desktop
Submitter:
Marius Mikucionis
Date:
2021-08-28 11:57:06 UTC
Severity:
normal
#993030#5
Date:
2021-08-26 14:58:16 UTC
From:
To:
Dear Maintainer,

Something strange happened to the keyboard layout treatment and I am not sure where exactly. It manifests in KDE plasma, which I upgraded recently and thus I assume that the issue is with plasma. I do not know the exact package which handles the keybord layout, so feel free to reassign to other package.

The issue is with "Lithuanian" kayboard layout with "Lithuanian (US)" variant.
Normally the layout is the same as US keyboard, except the 3rd level (accessible by holding Right-AltGr) contains Lithuanian letters on the number keys (the row above the letters, not the numberpad).
The issue is that the 3rd level (Lithuanian letters) now work at the 1st level (ie. without Right-AltGr) and the numbers are accessible as 3rd level (while holding the Right-AltGr).
The keyboard settings still show the correct layout (1st numbers, 3rd LT letters).

I have tried removing and re-adding this layout, and the issue persists.

I have tried Danish layout and the issue is not there (i.e. 1st level are numbers and 3rd are currency and other characters), so maybe the issue is specific to this particular variant.

   * What led up to the situation?

   apt update && apt upgrade && plasmashell --restart

   * What exactly did you do (or not do) that was effective (or ineffective)?

   now I am forced to switch between US and LT layout which is not convenient.

   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

#993030#10
Date:
2021-08-28 11:53:52 UTC
From:
To:
now I had time to experiment with this issue: it seems that the "variant" part is not being setup correctly (it seems to be ignored).
for example, I tried setting up Russian keyboard layout with "phonetic" variant -- the variant setting has no effect at all.

A workaround is to use the commandline, where the format is "layout(variant)":
setxkbmap "lt(us)"

Then the keyboard indicator shows unconfigured "lt(us)" -- confusing, but it works and I do not have to touch it again.