! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
keyboard shortcut should support multimedia keys
Status:
CLOSED: FIXED
Severity:
enhancement

Comments

Description Alan Tam 2006-11-05 17:45:46 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20060601 Firefox/2.0 (Ubuntu-edgy)
Build Identifier: 

Even if a key does not correspond to some keysym, "Keyboard Preferences -> Shortcuts" should accept that key. This avoids requiring the user to mess up the system with xmodkeys definitions and loading them upon startup.

GNOME does this by giving a name to the key e.g. "0xae" to denote the keycode received.

Reproducible: Always

Steps to Reproduce:
Comment 1 Olivier Fourdan editbugs 2006-11-05 17:58:29 CET
What version of gtk+ are you using?
Comment 2 Olivier Fourdan editbugs 2006-11-05 18:01:39 CET
Edgy? it's gtk+-2.10.x then. So it should work.
Comment 3 Olivier Fourdan editbugs 2006-11-05 18:04:12 CET
Ah, sorry. Multimedia keys (thought of windows key as modifier, an old story).

The thing is, the shortcuts editor deals with keycodes. As long as keyvodes are defined, t works.

If you want to have more keycodes defined by default, either ask the distribution to fix that or X.org to add more keyboard types. 
Comment 4 Olivier Fourdan editbugs 2006-11-05 19:56:51 CET
Maybe we should try to use keycode and not just keysyms. That would be less portable accross the platforms (for example, you you log from another workstation, the keycode may differ)
Comment 5 Alan Tam 2006-11-06 06:38:07 CET
> Maybe we should try to use keycode and not just keysyms.
Yes.

> That would be less portable accross the platforms (for example,
> you you log from another workstation, the keycode may differ)
 guess I would not be using the same keyboard from another workstation anyway. Therefore the unportability is acceptable as long as it is bounded to only keys which have no keysyms.
Comment 6 Olivier Fourdan editbugs 2007-02-13 20:29:13 CET
Implemented in trunk. This doesn't work with modifiers though, because of the way gdk decompose modifiers and keys.
Comment 7 Alan Tam 2007-02-15 17:43:20 CET
Tested and works very well. Please consider backporting to 4.4 branch. Thanks!
Comment 8 Alan Tam 2007-02-15 17:47:06 CET
But why do you use aumix instead of the more popular amixer?
Comment 9 Brian J. Tarricone (not reading bugmail) 2007-02-15 19:10:11 CET
(In reply to comment #8)
> But why do you use aumix instead of the more popular amixer?

amixer is Linux-only.  We run on a lot more than just Linux.  In that sense, amixer is not more popular than aumix.  It's just a default; users can change it to suit to taste.  And, most importantly, Linux distribution packagers can provide a different default keytheme to suit the applications available on their distro.

Bug #2503

Reported by:
Alan Tam
Reported on: 2006-11-05
Last modified on: 2009-07-15

People

Assignee:
Olivier Fourdan
CC List:
1 user

Version

Attachments

Additional information