Bug 446069

Summary: Language switching by `Ctrl+Shift+<Number>` shortcuts is broken, languages are switched but randomly
Product: [Applications] systemsettings Reporter: Pavel Gurevich <fax.k.root>
Component: kcm_keyboardAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: butirsky, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Pavel Gurevich 2021-11-25 10:54:56 UTC
SUMMARY
***
Language switching by `Ctrl+Shift+<Number>` shortcuts is broken, languages are switched but randomly.

I have 6 languages defined, switches by `Ctrl+Shift+<1..6>`, with English bound on `Ctrl+Shift+1`. English is the only one that repeatably works. All other switches are random, I have recorded a short video to illustrate.

https://youtu.be/bHDp7TT1mm4

In the video, the same shortcut, Ctrl+Shift+2 switches to Hebrew at 00:08, to Russian at 00:20, and to Ukrainian at 00:48.

This is a regression from the previous (correct) behavior.
***


STEPS TO REPRODUCE
1. Add multiple languages, assign shortcuts to `Ctrl+Shift+<Number>`
2. Try to switch languages in random order

OBSERVED RESULT
The language being switched to does not correspond to the shortcut

EXPECTED RESULT
The language switching follows the assigned language switching rules 


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubuntu with kubuntu-desktop installed
(available in About System)
KDE Plasma Version: 21.08.1
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2 (built against 5.15.2)

ADDITIONAL INFORMATION