From kde-core-devel Wed Mar 29 17:44:05 2006 From: Olivier Goffart Date: Wed, 29 Mar 2006 17:44:05 +0000 To: kde-core-devel Subject: Re: Farewell KAccel, you have served us well Message-Id: <200603291944.10970.ogoffart () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=114365420527927 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart3543224.3pzcTrUspf" --nextPart3543224.3pzcTrUspf Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Le Lundi 27 Mars 2006 16:05, Hamish Rodda a =E9crit=A0: > Hi, Hi, > As an added bonus, I noticed that from an api design perspective, it made > more sense to allow any KAction to be associated with a global accelerato= r, > rather than to special case it as was the case in the past. So, now you > can assign (programatically at least, gui to follow) a global accelerator > to any KAction. imho it is a gain, but not as large as it might first se= em > (many actions need focus to do something meaningful for the user). I also > abstracted most of the bookkeeping out of KGlobalAccelPrivate and into > KGlobalAccel itself, so that the (now renamed) KGlobalAccelImpl class can > concentrate on doing platform-specific tasks only. KGlobalAccel is now a > singleton. I'm not sure if it is fine. =20 =46or most actions, global shortcut make no sens: - some actions need, like you mentioned, something focussed or selected - if not, which action to trigger if several windows of the same applicat= ion=20 are open ? - and what if several instance of the same applications are open. Actions that could have a global shortcut are very specific. (thoses plugge= d=20 into the systemtray menu) Also, is there a use case of having both a local and a global shortcut ?=20 An idea is to have two flags: 1- Does it make sens to have a global shortcut ? (set by the programmer) 2- Is the shortcut global (set in the config) Another almost unrelated thing: I'd like to be able to execute one action with dcop^W dbus=20 In order the make the mouse gesture and voice trigger configurable in the=20 application configure shortcut dialog. The khotkey deamon must know which=20 action collection is "active" (if the window has actually the focus). And= =20 must be able to execute the action. --nextPart3543224.3pzcTrUspf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEKsdqz58lY8jWrL0RAtkKAJ9HhR4RWL9dhOaDgcqogNq27a/mrQCgi7go AC8nbvAYG1UX62x4q54TMTk= =6W1X -----END PGP SIGNATURE----- --nextPart3543224.3pzcTrUspf--