[dapper] Cannot use the 'Super_L' key for shortcuts

Bug #40866 reported by Francis
34
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I cannot use the Super_L key for keys shortcuts. If I want to use the keyboard shortcut Super_L+M, the utilities gnome-keybinding-properties will associate Super_L and not Super_L+M...

Revision history for this message
Matthew Lange (matthewlange) wrote :

This is standard. There is an option in keyboard settings to use Super_L as a modifier key. This will allow you to use it as a modifier.

It's either in Keyboard Shortcuts or Keyboard settings. If this does not fix your problem, feel free to reopen the ticket.

Thanks

Revision history for this message
Keith Hughitt (keith-hughitt) wrote :

I also have been having this problem since edgey (I'm currently running Gusty). I would like to bind the "show desktop" command
to "super + D" (similar to windows), however in the keyboard shortcuts dialog, as soon as I press the super key, it uses that by itself. I have tried modifying keyboard layout / superkey behavior properties, but have not had luck.

It should be easier to bind the Super key + another key to a keyboard shortcut.

-Keith

Revision history for this message
Keith Hughitt (keith-hughitt) wrote :

Re-opening ticket. Suggested solution does not help, multiple complaints regarding the same problem (for Compiz users) have been made on the forums (See http://ubuntuforums.org/showthread.php?t=544060 and http://ubuntuforums.org/showthread.php?t=566300&highlight=super+key for example).

Revision history for this message
Keith Hughitt (keith-hughitt) wrote :

Workaround: While compiz is running, load the Compiz settings manager, ccsm. Go to "general options" -> "actions," and double-click the name of the command you want to change, and manually enter the shortcut (e.g. <Super>d). Gnome keyboard shortcuts will still however list whatever shortcut was used before. Moreover, after setting the shortcut in ccsm, the shortcut will still work even after switching to metacity (although the gnome keyboard shortcut will still display the incorrect binding from before).

Revision history for this message
Andres Mujica (andres.mujica) wrote :

This is confirmed i'm assigning this bug to gnome-control-center. This must be marked as WISHLIST

Revision history for this message
The Devil Is A Squirrel (justanotheradress) wrote : [hardy] Cannot use the 'Super_L' key for shortcuts

Distributor ID: Ubuntu
Description: Ubuntu hardy (development branch)
Release: 8.04
Codename: hardy

That's not a wish, it's a bug:

Keyboard-setting
-------------------------
Generic 104-key PC
U.S English
Adding the EuroSign to certain keys: Add the EuroSign to the E key.
Alt/Win key behavior: Super is mapped to the Win-keys.
Rest is default.

Description | Key | Status
--------------------------------------
Move window to worspace 2 | Mod4+w | OK
Logout | Mod4+l | nok
Home Folder | Mod4+h | nok
Search | Mod4+f | nok
Launch Web Browser | Mod4+b | nok
Run a Terminal | Mod4+t | OK
Hide all windows and focus desktop | Mod4+m | OK

Every nok-binding is working with other keys than Mod...

Revision history for this message
interp (ubuntu-1-lysium) wrote :

Same problem here on Ubuntu 7.10.

Workaround:
Run gconf-editor
Change keys in
/apps/metacity/global_keybindings
apps/metacity/window_keybindings
Say <Mod3> or <Mod4> or <Mod5> to tell the key you mean, "<Mod4>m"

You can find and set the modification bits with xmodmap:
$ xmodmap
xmodmap: up to 3 keys per modifier, (keycodes in parentheses):

shift Shift_L (0x32), Shift_R (0x3e)
lock
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_L (0x7d), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3 Super_L (0x7f)
mod4 Hyper_L (0x80)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x74), ISO_Level3_Shift (0x7c)

If your map does not look like this one, use xmodmap to change the modification bits:
clear Mod4
add Mod4 = Hyper_L
or similar
An alternative is to use xkbcomp (read out keyboard table, change, read back in), but this is trickier.

Revision history for this message
interp (ubuntu-1-lysium) wrote :

For the xkbcomp workaround to set the modifier bits correctly:
Read out the xkbcomp with
$ xkbcomp -o my-xkbcomp :0.0
Modify the xkbcomp map with your editor.
Read it back in with
$ xkbcomp my-xkbcomp :0.0
(ignore the warnings of undefined keys).
Attached is the diff of my xkbcomp, if this helps.
See at the end of the diff to see how to change the modifier bits.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the bug report. This particular bug has already been reported, but feel free to report any other bugs you find.

Changed in gnome-control-center:
status: Confirmed → Invalid
Revision history for this message
Benjamin Thyreau (benji2) wrote :

Note that an easier workaround is to use gconf directly. In gconf-editor > apps/metacity/window_keybindings/ , i can type, for example, "<Super>Up" for the "raise" and "<Super>Down" for lower (Tested on Hardy Alpha 5, no Compiz activated)
This may shows that it's a simple parsing error from gnome-keybinding-properties

Revision history for this message
sebek (sebeeek) wrote :

A super easier workaround for settings SUPER_L+D to the shortcut "show desktop" using gnome-keybinding-properties without compiz :
instead of :
- click on the right line of gnome-keybinding-properties GUI
- press SUPER_L (windows key) and leave it pressed
- press the d key

you must do :
- press SUPER_L (windows key) and leave it pressed
- click on the right line of gnome-keybinding-properties GUI
- press the d key
- the only difference is that the keybinding will be referenced as "Mod4+D" instead of "SUPER_L+D"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.