Bug 287074

Summary: Alternate keyboard shortcut doesn't work anymore
Product: kxkb Reporter: Cristian Tibirna <tibirna>
Component: generalAssignee: Andriy Rysin <arysin>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Cristian Tibirna 2011-11-20 14:27:27 UTC
Version:           unspecified (using KDE 4.7.3) 
OS:                Linux

After many years in which kxkb worked flawlessly, the version coming with KDE 4.7.3 introduced a bug in which trying to use the alternative keyboard shortcut to switch layouts actually only switches once to the first configured layout (instead of switching to the next layout in the configured list), then it refuses to switch anymore. An effect of trying to switch with this method is that the switching by clicking with the mouse on the tray icon of kxkb Only works for the first two layouts in the configured list (or only for the first layout, if "Spare layouts" is checked on in the configuration dialog. To unblock kxkb, I have to right-click on the tray icon in order to display the configuration menu. I can observe then that there is an invalid menu item added, with the text "-- -" in it. If, from the contextual menu, I choose a correct layout  from below the "-- -" item, the layout is indeed switched to and the wrong menu item dissapears; until next time that I try to use the alternative shortcut, which reproduces the wrong behavior.

Reproducible: Always

Steps to Reproduce:
Activate "Configure layouts in System Settings/Input Devices/Keyboard/Layout". Add at least a second layout (bug appears with 2 layouts and more. Make sure there is an Alternative Shortcut assigned (in the "Shortcuts for Switching Layouts" groupbox).

Try to switch the keyboard with the alternative shortcut.

Actual Results:  
Nothing happens visibly.

If context menu of keyboard layout tray icon is inspected, weird menu item has appeared.

Expected Results:  
Switch layout correctly (as it did until KDE 4.7.3).
Don't add weird menu items

Might be related to the "Spare layouts" (newly added?) mechanism.
Comment 1 Andriy Rysin 2011-11-20 14:33:18 UTC

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