Bug 484459

Summary: Keyboard Layout widget fails to activate via keyboard shortcut
Product: [Plasma] plasmashell Reporter: Nate Graham <nate>
Component: Keyboard Layout widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: butirsky, Dr
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2024-03-25 15:42:06 UTC
Git master everything


STEPS TO REPRODUCE
1. Have 2+ keyboard layouts
2. Add standalone Keyboard Layout widget to panel
3. Right-click on the widget > Configure
4. Keyboard Shortcuts > set one
5. Press that keyboard shortcut


OBSERVED RESULT
Nothing happens


EXPECTED RESULT
The keyboard layout switches as if the widget had been clicked


ADDITIONAL INFORMATION
If instead I set a shortcut on the version of the widget (via the System Tray's "entries" page in the System Tray's config window), then the layout still doesn't change when I press the shortcut, but the icon visibly animates a little bit as if it was trying to activate, but failing.
Comment 1 Andrey 2024-03-26 13:20:54 UTC
I recall we have already discussed it earlier and there was an assumption it's redundant to have yet another shortcut to switch the layout by activating the widget (we have plenty of them already), so better would be to just get rid of that widget > Configure > Keyboard Shortcuts tab altogether.

I'm not sure if it's possible, though.
Comment 2 Nate Graham 2024-04-01 21:33:00 UTC
Redundant though it may be, we let the user do it, and in that case, it does nothing. So that's clearly a bug.

Removing the ability to do it is one path to fixing the issue, but I don't actually see a problem with making it possible. Sometimes it's good to have multiple ways to accomplish something in the interest of increasing discoverability of the feature.