Support for multimedia keys

Lubos Lunak l.lunak at
Tue Jan 27 20:07:11 GMT 2004


 while creating actions for KHotKeys that I plan to ship with next KDE version 
(I already have some posted at, I wanted to 
create also actions for handling the keys on those so-called multimedia 
keyboard (I have such one, not that I actually use the keys as I find them 
cumbersome, but I thought somebody maybe would want to ;) ).

 The URL above actually has first version of the actions, but it has only few 
of them, for various reasons, like:

- Qt currently has support only for handful of those keys, it e.g. doesn't 
support XF86Reload (is here somebody whose keyboard has the F5 equivalent key 
reporting XF86Refresh?). This means KDE3.2.x can't support some of the keys. 
I sent a patch to TT, but Qt-3.2.x is the minimum for KDE3.2.x, and I don't 
know if the patch gets in in time for Qt-3.3. Hmm, on the other hand, as the 
next Qt planned is Qt4, maybe I could give the necessary patches to 
interested people, as it can't cause trouble with future Qt versions.

- Some of the keys should be actually configured in applications, not in 
KHotKeys - those like XF86Back. For reasons listed below, I have so far only 
the small attached patches. Ok to commit?

- I have some trouble finding out what some of the keys should actually do. 
Some trouble are technical, like with XF86Suspend, I currently set it to 
'dcop kdesktop KScreensaverIface save', but I don't think that's really it. 
Some trouble are because I really don't know what some keys are supposed to 
do, e.g. XF86Search - should it be like Ctrl+F, F3, should it start KFind or 
should it start Konqueror at google? Does somebody know some document listing 
what these keys are supposed to do?

- For keys that I know what they should do, I don't know what to make the 
default. E.g. the volume keys - there's the KMix applet, where the keys can 
be configured, and it even gives feedback, but we default to the KMix docked 
app, which IMHO sucks compared to the applet in all aspects except for people 
coming from Windows expecting it in the systray.
 Or the playback keys - should they be used in Noatun (Keyz plugin) or in Juk? 
The playback keys could be actually added as defaults to both, as long as one 
doesn't run them both at the same time :), that's ok, but the XF86AudioMedia 
is AFAICS for launching such app, and there it can't be both.

- Why is KStdAccel::home() used for going to the home URL in Konqueror, when 
its docs say it's for going to the start of the line?

- I tried assigning XF86Favorites to the bookmarks menu in Konqueror, but it 
didn't work, even after I added another KActionMenu ctor that took KShortcut 
and didn't have the setShortcutConfigurable() call. Any idea what needs to be 
done for this to work (assuming this is what XF86Favorites should do)?

 I'd appreciate any help, thanks.

Lubos Lunak
KDE developer
SuSE CR, s.r.o.  e-mail: l.lunak at , l.lunak at
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kstdaccel.cpp.patch
Type: text/x-diff
Size: 1276 bytes
Desc: not available
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Type: text/x-diff
Size: 880 bytes
Desc: not available
URL: <>

More information about the kde-core-devel mailing list