Bug 441572 - KCM loses focus after apply is pressed
Summary: KCM loses focus after apply is pressed
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2021-08-26 13:41 UTC by Chris Rizzitello
Modified: 2021-08-29 14:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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