Bug 459098

Summary: Layout-specific keyboard shortcuts don't cause the Apply button to become enabled after being set
Product: [Applications] systemsettings Reporter: Andrey <butirsky>
Component: kcm_keyboardAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: butirsky, cyril.rossi, fabian, nate
Priority: NOR    
Version: 5.24.90   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=444569
https://bugs.kde.org/show_bug.cgi?id=459410
Latest Commit: Version Fixed In:

Description Andrey 2022-09-14 13:25:15 UTC
SUMMARY


STEPS TO REPRODUCE
1. Go to Keyboard KCM, Layouts tab
2. Assign whatever shortcut for any layout 

OBSERVED RESULT
The shortcut appeared on Shortcut tab, but Apply button is not accessible.
No shortcut assignments are taking place.

EXPECTED RESULT
We should be able to press Apply button to apply the shortcut assignment.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-46-generic (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
I run pretty old KDE Plasma Version: 5.24.80, can't test on master at the moment.
Comment 1 Nate Graham 2022-09-14 17:14:18 UTC
Looks like the shortcut gets applied immediately. If I close System Settings and re-open the Keyboard KCM, the shortcuts are still set in the layouts table.

However the shortcuts seem to work unreliably. I set up layouts for US English, Greek, and Russian, and assigned each one a shortcut:
- Meta+Ctrl+Alt+U for US English
- Meta+Ctrl+Alt+G for Greek
- Meta+Ctrl+Alt+R for Russian

But only the shortcut for Greek worked.
Comment 2 Andrey 2022-09-15 09:43:28 UTC
(In reply to Nate Graham from comment #1)
Thanks for trying.
> Looks like the shortcut gets applied immediately. If I close System Settings
> and re-open the Keyboard KCM, the shortcuts are still set in the layouts
> table.
For me they are still set also but just do not have any effect until I change something on the page and re-apply.

> However the shortcuts seem to work unreliably. I set up layouts for US
> English, Greek, and Russian, and assigned each one a shortcut:
> - Meta+Ctrl+Alt+U for US English
> - Meta+Ctrl+Alt+G for Greek
> - Meta+Ctrl+Alt+R for Russian
> 
> But only the shortcut for Greek worked.
Maybe worth trying to re-apply as above?
Comment 3 Nate Graham 2022-09-15 16:22:47 UTC
Yeah, I can confirm that.
Comment 4 Andrey 2022-09-15 17:44:48 UTC
Ok, nice, thank you.
My bet this was lost during porting to KConfig XT or something.
CCing people who might have an idea what's going on.