Bug 488280

Summary: Multi combination key sequence to Switch keyboard layout to a particular layout works incorrectly
Product: [Unmaintained] kscreenlocker Reporter: ratijas <me>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kdedev, nate
Priority: NOR    
Version First Reported In: git-master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Keyboard KCM - Layouts page with shortcuts

Description ratijas 2024-06-09 22:59:35 UTC
Created attachment 170309 [details]
Keyboard KCM - Layouts page with shortcuts

SUMMARY
It is possible to set a shortcut (key sequence) of multiple key combinations, such as "Ctrl+K, Ctrl+E", to switch keyboard layout to a particular layout. Keyboard KCM supports them; shortcut KCM does not support them. They work on a regular desktop. However, on a lock screen the results are varying: some layouts can be switched to using only the first key combination of their multi-combo sequences.

STEPS TO REPRODUCE
1. Open Keyboard KCM, navigate to the Layouts tab.
2. Check the Configure Layouts check box.
3. Add some layouts to the table, e.g. RU and EN.
4. Double click the Shortcut column
5. Set up some multi key combination key sequences, such as «Ctrl+K, Ctrl+E» for English and «Ctrl+K, Ctrl+R» for Russian.
6. Lock the screen.
7. Try switching the keyboard layout using the shortcuts you set in step 5.

OBSERVED RESULT
When I press Ctrl+K (the common prefix for both shortcuts in my setup), the layout switches to English. Then I press Ctrl+R as well, and the layout switches to Russian. Pressing Ctrl+E after Ctrl+K does not do anything special, because the layout already switched to English.

EXPECTED RESULT
multi key combination key sequences should only activate when all of the key combinations has been pressed in a quick succession.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: git-master
KDE Frameworks Version: git-master
Qt Version: 6.7.1
Kernel Version: 6.9.3-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 TraceyC 2024-07-18 00:08:41 UTC

*** This bug has been marked as a duplicate of bug 488268 ***