Bug 748444 - Ctrl key does not work for keyboard shortcuts (shortcuts don't work at all)
Summary: Ctrl key does not work for keyboard shortcuts (shortcuts don't work at all)
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: control-center
Version: 16
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Control Center Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-24 13:30 UTC by Steven Bakker
Modified: 2011-11-15 09:39 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-10-24 18:11:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.