Bug 142426 - special keys defined with xmodmap don't work anymore in KDE 3.5.6
Summary: special keys defined with xmodmap don't work anymore in KDE 3.5.6
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kcontrol
Classification: Miscellaneous
Component: kcmkhotkeys (show other bugs)
Version: 2.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Lubos Lunak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-03 00:13 UTC by Tanja Schulte
Modified: 2018-09-04 18:01 UTC (History)
4 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 Tanja Schulte 2007-03-03 00:13:30 UTC
Version:           2.1 (using KDE 3.5.6, Debian Package 4:3.5.6.r1.dfsg.1-2 (4.0))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.20.1-slh-smp-2

My keyboard has some special keys which I define with xmodmap through a bash-script in ~/.kde/Autostart:
# Logitech Wireless Keyboard EX 110
xmodmap -e 'keycode 234=F21' #back
xmodmap -e 'keycode 162=F22' #play
xmodmap -e 'keycode 164=F23' #stop
and so on.

In kcontrol's hotkey section I have defined a group "special keys" and defined actions for all of those keys, like starting amarok, kjots and so on. Everything works fine in KDE 3.5.5. But now that I have updated to KDE 3.5.6 those keys don't work anymore: I can use them in the hotkeys section to define actions (which means they are recognized) but when I pressing the keys no applications start, nothing happens. Actions for keys not defined through xmodmap do work.
Comment 1 Janet 2007-03-03 18:22:24 UTC
I have the same problem. At first I thought it was my keyboard because during the update the batteries of the keyboard gave up and after I replaced them the extra keys didn't work anymore. But I have tested it with another installation (same distribution, Debian Sid), with KDE 3.5.5 everything works. I also use xmodmap to define the extra keys.
Comment 2 Aaron Williams 2007-03-22 04:24:45 UTC
I am having a similar problem but with a Sun keyboard.  I have the extra UNIX keys mapped but KDE will not accept many of them.  It will not accept SunCopy, SunPaste, SunCut, Undo, Redo, etc. when setting Application Shortcuts.  It does work, however, for the global shortcuts.  Also, I am able to map the Find key and Stop key.
Comment 3 Janet 2007-05-04 23:09:32 UTC
For me the problem seems to be solved with KDE version 3.5.6.dfsg.2-2, I now can use the keys again.
Comment 4 A. Spehr 2009-02-08 22:47:43 UTC
Is this still an issue in 4.2?
Comment 5 Aaron Williams 2009-02-09 05:28:34 UTC
This is definitely a problem in 4.2, even worse than 3.5.10.

I am using a Sun USB type 6 keyboard for my PC and on 3.5.x I was able to map some of the keys, i.e. front, volume-, volume+, etc. In 4.2 I am unable to map keys like "find" and a dialog pops up saying "The key you pressed isn't supported by Qt."

I get this, for example, when I try and map Find (keycode 122).  xev reports the key properly.
Comment 6 A. Spehr 2009-02-09 08:56:52 UTC
Ok, then this is a Qt bug, and we need a nice little testcase written up to send to their bug people.
Comment 7 Hans Chen 2009-02-09 14:37:22 UTC
I don't know if this is related, but I just found that xmodmap + kde shortcuts don't work very well.

I want to use xmodmap to completely remap my laptop keyboard (to a Dvorak-like layout). There's no issue with the remapping, but afterwards my global KDE shortcuts stop to work. If you want to reproduce:
 1. Assign Alt+A to a global shortcut (for example, switch desktop)
 2. Map another key to 'A' (xmodmap -e 'keycode 67 = a' maps F1 to a)
 3. Hit Alt+F1. It doesn't work. However, pressing F1 inputs 'a', as expected.

I thought this was a KDE4 bug because I haven't had any problems before. Then I realized that I use a Dvorak keyboard (well, you can switch between QWERTY and Dvorak), so I haven't remapped very much on my KDE 3.5.7 computer.

--

To summarize:
 - Global shortcuts don't work with keys remapped with xmodmap.
 - I can reproduce this in KDE 3.5.7 and KDE 4.2.
 - I don't get dialogs or anything. It just doesn't work.
 - It seems like normal shortcuts (not global) work fine with remapped keys.
Comment 8 A. Spehr 2009-02-10 10:27:21 UTC
*** Bug 183726 has been marked as a duplicate of this bug. ***
Comment 9 Tanja Schulte 2009-11-13 13:49:36 UTC
Shouldn't this now be assigned to some other application than kcontrol?
Comment 10 Andrew Crouthamel 2018-09-04 18:01:20 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years so I am closing this bug. Kcontrol has been replaced by System Settings in Plasma. Please give the latest version of that a try, and open a new bug in "systemsettings" if you continue to have an issue. Thank you!