[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Plasmoid settings: More than one global shortcut?
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2010-12-30 8:45:07
Message-ID: 201012300045.07660.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Wednesday, December 29, 2010, Nik Lutz wrote:
> I see no way to add more shortcuts to the "Keyboard Shortcut" page of
> a plasmoid. Why? 

it is a centrally managed mechanism to give focus to a given plasmoid. one 
action == one item on that page. since no one has provided a way to extend it 
further with additional shortcuts, such as plasmoid specific ones as yours 
needs/wants to, it hasn't gained any additional features.

> Is there a workaround?

not currently.

one possible approach would be to check Applet::contextualActions() for 
actions that have a valid globalShortcut() and add those entries to the page. 
another possibility would be to add an action collection to Applet just for 
such global shortcut actions, but that seems like that would be a) overkill 
and b) encourage developers to have shortcuts that don't appear in the context 
menu.

patches welcome.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks

["signature.asc" (application/pgp-signature)]

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic