Bug 748444

Summary: Ctrl key does not work for keyboard shortcuts (shortcuts don't work at all)
Product: [Fedora] Fedora Reporter: Steven Bakker <sb>
Component: control-centerAssignee: Control Center Maintainer <control-center-maint>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: bnocera, control-center-maint, kparal, nphilipp, rstrode
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-24 18:11:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steven Bakker 2011-10-24 13:30:45 UTC
Description of problem:

When trying to change the keyboard shortcut or create a new shortcut for a command, the Ctrl key is not picked up. For example, "Open Calculator"; if I try to change the application short-cut to "Ctrl+Alt+C", the dialog shows "Alt+C". When checking in "dconf", I get: 

--
$ dconf read /org/gnome/settings-daemon/plugins/media-keys/calculator
'<Primary><Alt>c'
--

Unfortunately, even using "dconf write" to change this to '<Control><Alt>c' does not work: the key sequence is simply ignored.

Version-Release number of selected component (if applicable):

control-center-3.2.1-1.fc16.x86_64

How reproducible:

Always.

Steps to Reproduce:
1. Open keyboard settings from control center
2. Select "Shortcuts"
3. Add a Custom Shortcut, named "Foo", command "gnome-terminal".
4. Try to assign "Ctrl+Alt+Z" as a shortcut.
  
Actual results:

* dialog shows "Alt+Z"
* dconf reads "<Primary><Alt>z"
* shortcut does not work

Expected results:

* dialog shows "Ctrl+Alt+Z"
* dconf reads "<Control><Alt>z"
* shortcut launches a terminal

Additional info:

Comment 1 Bastien Nocera 2011-10-24 18:11:45 UTC
Fixed in gnome-control-center and gnome-settings-daemon upstream.

Comment 2 Nils Philippsen 2011-10-31 14:52:14 UTC
Setting things in dconf ("Control+Shift+Y" for web browser in my case) works here, configuring it in settings didn't:

control-center-3.2.1-2.fc16.x86_64
gnome-settings-daemon-3.2.1-3.fc16.x86_64

Comment 3 Steven Bakker 2011-10-31 16:38:44 UTC
Ack. I just noticed that a shortcut with "Shift" in it works, but not if it contains "Alt". Just for kicks I tried:

$ dconf write \
     /org/gnome/settings-daemon/plugins/media-keys/calculator \
     "'<Control><Meta>y'"

And, lo: Ctrl+Alt+y launches a calculator!

So the settings utility translates Ctrl and Alt incorrectly:

Key     Translated-as   Should-be
---------------------------------
Ctrl    <Primary>       <Control>
Alt     <Alt>           <Meta>

Strange, because "<Control><Alt><Down>" does move to another workspace, so the "<Alt>" is recognised for that command, but not for the launchers... Ugh.

Any ETA on the fixed packages?

Comment 4 Kamil Páral 2011-11-15 09:39:20 UTC
The same problem is reported in bug 752591. The fix is available in testing.