Working method for focusing widgets in panels and keyboard navigation for Tasks applet

Emdek emdeck at gmail.com
Sat Aug 22 10:55:22 CEST 2009


On 21-08-2009 at 22:42:19 Chani <chanika at gmail.com> wrote:
> On August 21, 2009 13:29:17 Marco Martin wrote:
>> On Friday 21 August 2009, Emdek wrote:
>> > Hello
>> >
>> > As we talked yesterday on IRC, on notmart request I'll now describe  
>> how
>> > works (to allow to discuss that on Tokamak) this quite simply hack,
>> > workaround, only sensible method (;-)) or name it whatever you like.
>>
>> as i said it's kinda brutal, the alternative is making kwin give focus  
>> to
>> docks in a normal way, but it would have so many drawbacks...
>> using this in every applet is a big no no for sure, what about putting  
>> it
>>  in PanelView slot and having Applet::focusRequested(QGraphicsWidget*)
>>  signal connected to it?
>> not super-pretty as well, but i think it would be a good compromise
>
> ick ick ick.
> can't we just add something to kwin? keyboard shortcut for panel focus,  
> some
> other way of conditionally giving it focus..?

Yes, we are waiting for this form beginning and for now still no results  
(yes, I know, there are more important things)...
And KWin method will work on other platforms? Or there this bug doesn't  
exists?
By the way, in fact we use KWin in this method, but not directly. ;-)

Shortcut is not good idea I think (could be considered be some users as  
very ugly workaround, but other would like it), and how to put  
configuration option to panel controller to not make it worse (I've said  
already that I hate current look of "More options" part? ;-)), because we  
then need to have one for each (I'm using two panels).

But keyboard shortcut to focus whole Plasma (give it possibility to switch  
between applets and containments using standard tab and other) would be  
best probably (but still needs my code, or similar solution).

By the way, there would be need for artwork to indicate focus state (for  
example kind of highlighted applet background, also for panels, and  
slightly different color for panels background).

It's funny how ideas comes to me after three days (and still not finished  
:-/) of fever and head ache. :-D


More information about the Plasma-devel mailing list