SUMMARY I have set up a keyboard shortcut to toggle “Do not disturb” mode in notifications. When I set any combination of keys, apparently works. But, after close the settings window, the shortcut stop to work. STEPS TO REPRODUCE 1. Open Notifications settings page in System Settings. 2. Set up a shortcut for toggle “Do not disturb” mode (Ctrl+Shift+F4, by example). 3. Try the new shortcut combination.The toggle works. 4. Close System Settings window. 5. Try again new shortcut combination. The toggle does not work. OBSERVED RESULT After close System Settings window, the shortcut does not work. EXPECTED RESULT Shortcut would be work in any situation when is invoked. SOFTWARE/OS VERSIONS Operating System: KDE neon Testing Edition KDE Plasma Version: 5.21.4 KDE Frameworks Version: 5.82.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION
Wow, can confirm. We're probably registering it as a local shortcut rather than a global shortcut.
HMm, it actually stops working the moment you leave the page, and doesn't start working again if you return. But the KCM still lists the shortcut.
The shortcut is written into the config file properly though, and restarting kglobalaccel5 makes it start working. So maybe we're somehow not telling kglobalaccel about the new shortcut we've added?
Seems like closing the KCM wipes out the shortcut change until kglobalaccel is restarted, basically.