Bug 335538

Summary: Full representation popups of panel applets don't receive focus when opened by keyboard shortcut
Product: [Plasma] plasmashell Reporter: Rohan Garg <rohan>
Component: generalAssignee: Sebastian Kügler <sebas>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, bhush94, gladhorn, kde, me, mgraesslin, mklapetek, notmart, rohan
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Rohan Garg 2014-05-29 15:27:15 UTC
Seems like the search area does not get focused when you trigger kicker from a keyboard shortcut

Reproducible: Always
Comment 1 Eike Hein 2014-05-29 15:35:29 UTC
Seems the dialog window just isn't getting focus at all.
Comment 2 Marco Martin 2014-05-29 16:35:24 UTC
can't reproduce here, the focus seems correctly assigned to kickoff when started with alt+f1 both with kwin 4 and 5
Comment 3 Vishesh Handa 2014-05-29 17:03:15 UTC
Just tested this on KWin5, the focus is not getting set when it launched via a shortcut, it is set when manually clicking on the plasmoid.
Comment 4 Marco Martin 2014-05-29 17:06:58 UTC
may it depend from focus policy or focus stealing prevention?
Comment 5 Martin Flöser 2014-06-18 11:42:55 UTC
that's a month old? Is that still valid, I had a fix in kglobalacceld which should fix it.
Comment 6 Marco Martin 2014-06-18 11:44:57 UTC
buh, couldn't reproduce back then, can't reproduce now :p
Comment 7 Rohan Garg 2014-06-18 12:36:53 UTC
I can still reproduce it on neon as of today.
Comment 8 Martin Flöser 2014-06-18 12:53:05 UTC
Didn't try with kicker, but IM and kickoff work just fine. Click, start typing, works. Can you verify with other applets?
Comment 9 Rohan Garg 2014-06-18 12:56:20 UTC
Aha, you clicked, I'm triggering it with a keyboard shortcut. I can't reproduce it on kickoff though.
Comment 10 Martin Flöser 2014-06-18 13:03:31 UTC
ok, just assigned a keyboard shortcut to kickoff and it works there.

What's your focus policy?
Comment 11 Rohan Garg 2014-06-18 13:05:51 UTC
Click to Focus , however as mentioned, kickoff works perfectly, but kicker does not.
Comment 12 Aleix Pol 2014-07-07 16:54:49 UTC
I think it's just somewhere else the focus.

If I use a keyboard shortcut to trigger the ktp-contactlist plasmoid. I can't type, but then if I press tab, the focus goes to the input box, so the focus already was somewhere within the window.

I think the focus should be in the view by default, though.
Comment 13 Eike Hein 2014-07-09 13:27:20 UTC
*** Bug 337268 has been marked as a duplicate of this bug. ***
Comment 14 David Edmundson 2014-08-23 18:57:49 UTC
Seems fixed now (Frederick Gladhorn made some changes recently) please reopen if still broken with latest master
Comment 15 Frederik Gladhorn 2014-08-23 20:52:52 UTC
Yes, the problem was actually calling forceActiveFocus setting the focus unconditionally on the root item. Usually that's not what one wants (some sub item should have the focus and had focus: true, but forceActiveFocus overrides that happily). so the lesson is to use force with care ;)