Bug 168156 - Some special keys (XF86PowerOff, possibly others) can't be used as keyboard shortcuts
Summary: Some special keys (XF86PowerOff, possibly others) can't be used as keyboard s...
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Jansen
URL:
Keywords:
: 168164 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-02 23:04 UTC by Adam Cigánek
Modified: 2009-12-09 15:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Cigánek 2008-08-02 23:04:47 UTC
Version:            (using KDE 4.1.0)
Installed from:    Unlisted Binary Package
OS:                Linux

Hi,

I want to set my power button to shut down the system. I mapped it through acpi and xmodmap to X keycode XF86PowerOff (this is what xev is telling me when i press it). However, i can't set it as keyboard shortcut. I tried it in System Settings -> Keyboard and Mouse -> Keyboard Shortcuts -> Run Command Interface -> Halt Without Confirmation, but it seems that the keyboard-shortcut widget doesn't detect the key press. I tried it also in other applications (kate, dolphin) to verify this is global KDE problem and indeed it is. I then tried it in amarok (which is still from kde 3.x) but there it works as expected.

Some of the special keys (XF86AudioLowerVolumne, XF86AudioRaiseVolume, ...) work, but XF86PowerOff (and possibly others) does not.
Comment 1 George Kiagiadakis 2008-08-03 11:15:17 UTC
*** Bug 168164 has been marked as a duplicate of this bug. ***
Comment 2 Adam Cigánek 2008-08-03 14:52:10 UTC
This could be caused by this Qt bug: http://trolltech.com/developer/task-tracker/index_html?method=entry&id=191318
Comment 3 George Kiagiadakis 2008-08-03 15:09:01 UTC
Possibly... I can confirm in my laptop that XF86WWW doesn't work (as the qt bug says) and it doesn't work neither with kde4 nor with kde3 applications. It works though in xev and in gtk apps. I also tried the code in that qt bug and I can confirm that XF86WWW doesn't even work with pure qt4 applications.
Comment 4 Stefan S. 2009-01-15 11:56:45 UTC
with KDE 4.2 RC1 (4.1.96)  (with libqt4-4.4.3) build by openSuse
an error message appears when I try to assign the key shortcut 
of key XF86PowerDown  (shown correct with 'xev'):

"Die gerade gedrückte Taste wird von QT nicht unterstützt."
(= The pressed key is not supported by QT.)
Comment 5 George Kiagiadakis 2009-03-23 23:55:14 UTC
Assigning to Michael Jansen on his request.
Comment 6 Michael Jansen 2009-12-09 15:28:24 UTC
Fixed with commit 1060011 . Will be part of kde 4.4.