Bug 184195

Summary: cannot assign Shift+Multimadiakey (like "Forward") global shortcut anymore
Product: [I don't know] kde Reporter: Mathias Panzenböck <grosser.meister.morti>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: cedric.laczny
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mathias Panzenböck 2009-02-13 01:59:09 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Fedora RPMs

In KDE 3.5 I could assign a special multimedia key to a global shortcut and Shift+the same key to another one. Now I tried to do the same in KDE 4.2 (Forward = next song in amarok, Shift+Forward = seek forward in current song) but it doesn't work. KDE does not recognize Shift+Forward as a different key combination as just Forward.

Note: The Forward key is meant to be used with webbrowsers and is automatically assigned to the forward action in konqueror. However, this is not useful so I reassigned it.

I use a neat "Microsoft Comfort Curve Keyboard 2000 v1.0". I disabled keyboard layouts, but enabling them and choosing the right (or a similar) keyboard from the list changes nothing. (Do you need to restart X to make such settings effective?)

This feature of KDE 3 was yet another feature I used to show off in front of friends to show them how cool KDE is. Yet another feature that KDE 4 does not support any more. :( (like the awesome print dialog of KDE 3.)
Comment 1 Cedric Laczny 2009-04-09 20:22:23 UTC
I experienced the same problem with KDE 3.5.9 after an update to the xorg-server-1.5.3-r5 on gentoo amd64. It now uses the evdev driver, instead of the kbd driver. After the update and change I also had to reassign my multimedia keys (I am using xbindkeys).
Before the xorg-server update, I used "Shift + XF86Calculator" to start the terminal-emulator in a konqueror window. Now, the settings are still the same, but KDE doesn't accept the key-combination. Even when I want to assign it to the alternative combination, it only accepts the "XF86Calculator".
Comment 2 Mathias Panzenböck 2009-04-09 21:59:52 UTC
SO it could be a bug in the evdev driver? Do they have a bugtracker?
Comment 3 Cedric Laczny 2009-04-09 22:10:20 UTC
(In reply to comment #2)
> SO it could be a bug in the evdev driver? Do they have a bugtracker?
This bug looks quite similar to me:
http://bugs.freedesktop.org/show_bug.cgi?id=8815
Comment 4 Cedric Laczny 2009-04-09 22:55:27 UTC
Workaround: Running "setxkbmap -rules xorg -model evdev -layout de" and specifying the keyboard as "evdev managed device" in keyboard layout of kcontrol, I'm able to somewhat produce key-combinations. This can also be used in xorg.conf or corresponding fdi-files (in case of HAL and evdev). However, I am not sure if the "setxkbmap" command really plays a role here. Perhaps only the entry in kcontrol does the job.
As stated before, I use "Shift + XF86Calculator" to display the "terminal emulator" in konqueror. With this approach I am able to use this key combination although I have to press it _twice_ to get the desired effect.
I have no clue why this is the case, especially as I found quite often problems where one key press results in multiple events but not vice versa.
Hope this works for you also. Would be helpful to let me know if it does.
Comment 5 David Rosenstrauch 2009-09-16 16:02:07 UTC
Same problem here.  Some keys map fine (e.g., XF86Mail), but XF86Calculator does not.  All keys report correctly in xev.  Very strange.  I'm using KDE 4.3.1, with keyboard model "evdev-managed keyboard".
Comment 6 Cedric Laczny 2009-09-16 17:50:55 UTC
(In reply to comment #4)
> Workaround: Running "setxkbmap -rules xorg -model evdev -layout de" and
> specifying the keyboard as "evdev managed device" in keyboard layout of
> kcontrol, I'm able to somewhat produce key-combinations. This can also be used
> in xorg.conf or corresponding fdi-files (in case of HAL and evdev). However, I
> am not sure if the "setxkbmap" command really plays a role here. Perhaps only
> the entry in kcontrol does the job.
> As stated before, I use "Shift + XF86Calculator" to display the "terminal
> emulator" in konqueror. With this approach I am able to use this key
> combination although I have to press it _twice_ to get the desired effect.
> I have no clue why this is the case, especially as I found quite often problems
> where one key press results in multiple events but not vice versa.
> Hope this works for you also. Would be helpful to let me know if it does.

UPDATE: as I have now KDE-4.3.1, I'm experiencing the same problems as does Mathias Panzenböck and I can not work it around using the above mentioned command. So far I have not come across any other solution. I updated to evdev-2.2.4 (under gentoo) with no change.
Comment 7 Mathias Panzenböck 2010-05-01 18:06:13 UTC
I just tried it another time and it works again!

I use:
Fedora 12 x86_64
Qt: 4.6.2
KDE Development Platform: 4.4.2 (KDE 4.4.2)
kde4-config: 1.0
Linux panzi 2.6.32.11-99.fc12.x86_64 #1 SMP Mon Apr 5 19:59:38 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

x.org:
X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: x86-05 2.6.18-164.6.1.el5

xorg-x11-drv-evdev version 2.3.2

The keyboard is still the same.

Does anyone else still experience this bug with a similar recent system?
Comment 8 Cedric Laczny 2010-05-01 19:13:17 UTC
(In reply to comment #7)
> I just tried it another time and it works again!
> 
> I use:
> Fedora 12 x86_64
> Qt: 4.6.2
> KDE Development Platform: 4.4.2 (KDE 4.4.2)
> kde4-config: 1.0
> Linux panzi 2.6.32.11-99.fc12.x86_64 #1 SMP Mon Apr 5 19:59:38 UTC 2010 x86_64
> x86_64 x86_64 GNU/Linux
> 
> x.org:
> X.Org X Server 1.7.6
> Release Date: 2010-03-17
> X Protocol Version 11, Revision 0
> Build Operating System: x86-05 2.6.18-164.6.1.el5
> 
> xorg-x11-drv-evdev version 2.3.2
> 
> The keyboard is still the same.
> 
> Does anyone else still experience this bug with a similar recent system?

Mathias, could it be that you have updated your KDE and Qt installation since then?
Because this behavior changed for me too due to update to Qt 4.6.2. However, it seems to be only fully integrated throughout KDE-4.4.2 (minor problems under KDE-4.3.5, s. https://bugs.kde.org/show_bug.cgi?id=235549).

As a little sidenote, have a look at the print dialog. It should also list "Print even/odd pages" under the "Options". Even it still misses the "Page range" specification option, that is a major benefit in KDE-4.4.2 over 4.3.5 :)
Comment 9 Mathias Panzenböck 2010-05-01 19:52:29 UTC
Yes there where A LOT of updates in between. As you can see my initial report was for KDE 4.2.0 and now I use 4.4.2 (I seem to have forgotten to list other system information back then).

OT: The print dialog still is only a faint shadow of the one in KDE 3.5. There is no way for printing booklets and all those other awesome filters do not exist. Also there still are no settings (like image compression) for printing PDF files.
Comment 10 Simon Persson 2011-06-29 04:10:27 UTC
Git commit 4cee79c5e24bb40ad024ba520f4fce93ad7848d0 by Simon Persson.
Committed on 29/06/2011 at 03:55.
Pushed by persson into branch 'master'.

Make KKeySequenceWidget accept shift modifier with multimedia keys

Assuming that special keys on modern keyboards do not change which
symbol is produced when shift is used, they should all be allowed to be
used with the shift modifier in a shortcut.
BUG: 184195
CCMAIL: kde@michael-jansen.biz
REVIEW: 101530

M  +142  -0    kdeui/widgets/kkeysequencewidget.cpp     

http://commits.kde.org/kdelibs/4cee79c5e24bb40ad024ba520f4fce93ad7848d0
Comment 11 David Faure 2011-08-06 17:32:38 UTC
Git commit ff2a3fbc82334825a3e17452c11d5e670c7b3202 by David Faure, on behalf of Simon Persson.
Committed on 29/06/2011 at 03:55.
Pushed by dfaure into branch 'KDE/4.7'.

Make KKeySequenceWidget accept shift modifier with multimedia keys

Assuming that special keys on modern keyboards do not change which
symbol is produced when shift is used, they should all be allowed to be
used with the shift modifier in a shortcut.
BUG: 184195
CCMAIL: kde@michael-jansen.biz
REVIEW: 101530

M  +142  -0    kdeui/widgets/kkeysequencewidget.cpp

http://commits.kde.org/kdelibs/ff2a3fbc82334825a3e17452c11d5e670c7b3202