Bug 441572

Summary: KCM loses focus after apply is pressed
Product: [Applications] systemsettings Reporter: Chris Rizzitello <rizzitello>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: nate
Priority: NOR Keywords: usability
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Chris Rizzitello 2021-08-26 13:41:14 UTC
SUMMARY

When you hit apply the KCM loses focus with this the ability to forceActiveFocus. See this [Kscreen MR](https://invent.kde.org/plasma/kscreen/-/merge_requests/35) for a use case to allow the KCM to optionally change this behavior 


STEPS TO REPRODUCE
1. open any kcm hit apply 
2. Note focus is on the search bar for system settings

OBSERVED RESULT
Focus moves to the search bar while the kcm trying to set the activeFocus to its confirm dialog.

EXPECTED RESULT

The Confirm Dialog in the patch gets focus. / The loaded kcm keeps focus after apply is pressed 

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  arch / X11
(available in About System)
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.15
Comment 1 Nate Graham 2021-08-26 19:18:31 UTC
Can confirm. This isn't right...
Comment 2 Nate Graham 2021-08-29 14:47:30 UTC
Urgh this code is ridiculously complex and indirect