After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 579658 - Super (Windows key) isn't recognized as a modifier
Super (Windows key) isn't recognized as a modifier
Status: RESOLVED NOTGNOME
Product: libgnomekbd
Classification: Core
Component: Config
2.26.x
Other All
: Normal normal
: ---
Assigned To: libgnomekbd maintainers
Sergey V. Udaltsov
Depends on:
Blocks:
 
 
Reported: 2009-04-20 21:15 UTC by Aidan Fitzpatrick
Modified: 2011-01-05 00:25 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
output of xkbcomp :0 -xkb out.xkb (56.56 KB, text/plain)
2009-08-30 09:09 UTC, Aidan Fitzpatrick
Details
"Good" out.xkb (56.60 KB, text/plain)
2009-08-30 21:35 UTC, Sergey V. Udaltsov
Details
/usr/share/X11/xkb/symbols/pc (3.68 KB, text/plain)
2009-09-04 08:26 UTC, Aidan Fitzpatrick
Details
My version of symbols/pc (3.68 KB, text/plain)
2009-09-04 19:54 UTC, Sergey V. Udaltsov
Details

Description Aidan Fitzpatrick 2009-04-20 21:15:58 UTC
Please describe the problem:
Instead of recognizing Super as a modifier, gnome-keybinding-properties
considers them to be isolated keys, recognizing the left and right Super keys as
Super_L and Super_R respectively.

This means that the Windows key cannot be used with a modifier in a shortcut: Win + L, etc., without employing a workaround of enabling "Super is mapped to Win keys" in Keyboard Properties.

This has got nothing to do with unusual keyboards: it's something trivial, used
by many computer users, and which is broken out of the box.

Bug #165343 has fixed a separate issue with gnome-keybinding-properties, but this has not resolved the problem, and the developer suggests there's a problem at a higher level like libgnomekbd. (Lots of great info on that bug.)

Interestingly, the Compiz ccsm tool handles the Windows key perfectly.

A fix is needed. From my limited knowledge, I think that's either:

1. Ship GNOME with "Super is mapped to Win keys" as default
2. Eliminate whichever idiosyncrasy requires "Super is mapped to Win keys"

I suspect option 2 will be a big deal.

Is this the right component for this issue?

Steps to reproduce:
1. Install -- say -- Ubuntu
2. Run gnome-keybinding-properties
3. Try to bind Windows key + G to an action (or any other letter)


Actual results:
Super_L comes up

Expected results:
Mod4+G
(or Super_L+G, or Win+G)


Does this happen every time?


Other information:
Comment 1 Wouter Bolsterlee (uws) 2009-04-21 05:53:37 UTC
Confirming, I'm seeing this as well.
Comment 2 Aidan Fitzpatrick 2009-04-29 12:45:43 UTC
Launchpad has a downstream tracker for this one with over a hundred comments: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/12153

There were two recent comments to suggest that the workaround isn't viable, as it affects behaviour of the Alt and AltGr keys.
Comment 3 Sergey V. Udaltsov 2009-07-27 23:27:46 UTC
Just tried, see as Mod4+G.

What's your xkb configuration?
Comment 4 Aidan Fitzpatrick 2009-07-29 08:42:24 UTC
I don't know; whatever's the been default on the Ubuntu and Fedora builds over the years. Right now I'm on Ubuntu 9.04 w/ GNOME 2.26.1.

x@y:~$ dpkg -l | grep xkb
ii  libxkbfile1                                              1:1.0.5-1ubuntu2                                        X11 keyboard file manipulation library
ii  x11-xkb-utils                                            7.4+1ubuntu2                                            X11 XKB utilities
ii  xkb-data                                                 1.5-2ubuntu11                                           X Keyboard Extension (XKB) configuration data

My xorg.conf doesn't specify anything relating to xkb, and GNOME thinks I have a Generic 105 key int'l keyboard. Would something from gconf help you?
Comment 5 Paul 'VeGeek' Lubetsky 2009-08-29 09:24:33 UTC
Doesn`t work for me too.
It is possible to make Super+somekey shortcuts in GTK menu, but gnome-keybinding-properties doesn`t understand this kind of shorcuts, so it is necessary to modify Metacity`s/gnome-settings-daemon settings via gconf. 
Seems like a gnome-keybinding-properties.
Comment 6 Sergey V. Udaltsov 2009-08-29 12:12:36 UTC
Could you please do xprop -root | grep XKB?
Comment 7 Aidan Fitzpatrick 2009-08-29 13:10:22 UTC
x@y:~$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "evdev", "pc105", "gb", "", ""
_XKB_RULES_NAMES(STRING) = "evdev", "pc105", "gb", "", ""

If I enable "Super is mapped to Win keys" I get:
x@y:~$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "evdev", "pc105", "gb", "", ""
_XKB_RULES_NAMES(STRING) = "evdev", "pc105", "gb", "", "altwin:super_win"

...but as explained above -- and in more detail in comments 107 and 108 on https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/12153?comments=all -- the "Super is mapped to Win keys" workaround causes problems, particularly with Alt and AltGr.

Capturing keyboard shortcuts with Compiz' CCSM tool works perfectly with or without this setting.
Comment 8 Paul 'VeGeek' Lubetsky 2009-08-29 13:24:35 UTC
vegeek@vegeek ~ $ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "evdev", "evdev", "us", "", ""
_XKB_RULES_NAMES(STRING) = "evdev", "evdev", "us,ru,by", ",,winkeys", "grp:caps_toggle,grp_led:num,grp_led:caps,grp_led:scroll,compose:ralt"
for me
Other applications capture this type of bindings correctly.
Comment 9 Sergey V. Udaltsov 2009-08-29 22:50:59 UTC
Aidan, I've just configured your initial setup (layout gb, no options) - still see Mod4+G in gnome keybindings. All the latest packages from Ubuntu.

$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "evdev", "pc105", "us", "", ""
_XKB_RULES_NAMES(STRING) = "evdev", "pc105", "gb", "", ""

(the backup line can be ignored)

Could you please attach the output of xkbcomp :0 -xkb out.xkb? There is something weird here...
Comment 10 Aidan Fitzpatrick 2009-08-30 09:09:35 UTC
Created attachment 142017 [details]
output of xkbcomp :0 -xkb out.xkb

Thanks Sergey, see attached.
Comment 11 Paul 'VeGeek' Lubetsky 2009-08-30 14:36:08 UTC
vegeek@vegeek ~ $ ldd /usr/bin/gnome-keybinding-properties | grep gnomekbd
vegeek@vegeek ~ $ 
(gnome-control-center linked with --as-needed)
altwin:super_win helps.
Comment 12 Sergey V. Udaltsov 2009-08-30 21:23:55 UTC
Aidan: Confirming. With your configuration, I see Super_L instead of Mod4+G. Will try to find out why...
Comment 13 Sergey V. Udaltsov 2009-08-30 21:35:11 UTC
Created attachment 142087 [details]
"Good" out.xkb

I made in g-k-p same configuration, then run xkbcomp. See the result. The most substantial change is that:

>     modifier_map Mod4 { <LWIN> };
>     modifier_map Mod4 { <RWIN> };

These lines come from symbols/pc. Do you have them there?
Comment 14 Paul 'VeGeek' Lubetsky 2009-08-31 04:55:33 UTC
Heh, interesting...
The bug is gone after changing keyboard type from evdev-managed to pc104.
Comment 15 Aidan Fitzpatrick 2009-08-31 13:12:25 UTC
Hi Sergey: not sure I understand what you're asking me to test. Do I have those symbols where? In the file I attached before?
Comment 16 Sergey V. Udaltsov 2009-09-03 23:47:42 UTC
Aidan, could you please attach /usr/share/X11/xkb/symbols/pc ?
Comment 17 Aidan Fitzpatrick 2009-09-04 08:26:09 UTC
Created attachment 142458 [details]
/usr/share/X11/xkb/symbols/pc

This file was dated 2009/03/31 on the filesystem, which I'm guessing is when I first upgraded to Jaunty. (I had this problem in previous releases, too.)
Comment 18 Aidan Fitzpatrick 2009-09-04 08:29:22 UTC
In answer to your question, and in relation to LWIN, RWIN and SUPR, my file has:

key <LWIN> {    [ Super_L           ]   };
key <RWIN> {    [ Super_R           ]   };
key <SUPR> {    [ NoSymbol, Super_L ]   };
modifier_map Mod4   { <SUPR> };
Comment 19 Sergey V. Udaltsov 2009-09-04 19:54:49 UTC
Created attachment 142496 [details]
My version of symbols/pc 

My version of symbols/pc is different. Since I have the latest version (that works), I am closing this bug. Please upgrade.

In case my symbols/pc does not help you - I guess, it would be better to open a bug in fd.o against xkeyboard-config.
Comment 20 Aidan Fitzpatrick 2009-09-04 19:58:56 UTC
Sergey
Thanks for your time on this. I will test the file you have uploaded.
Probably a silly question, but what is "fd.o"? freedesktop.org?
Comment 21 Sergey V. Udaltsov 2011-01-05 00:16:52 UTC
yes, freedesktop.org