GNOME Bugzilla – Bug 671448
Cannot assign ctrl-Q as a personal shortcut because it quits the application
Last modified: 2012-07-16 16:06:18 UTC
Ubuntu Precise Version: 1:3.3.90-0ubuntu4 I want to remove the annoying shortcut ctrl-Q for all gnome applications through the gnome-control-center and its keyboard panel. I created a new personal shortcut but when I click on 'deactivated' to choose my shortcut and I press 'ctrl-Q' instead of selecting this key combination the application just leaves... See: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/947800
A bit bizarre, I admit, but what's the use case for using Ctrl+Q exactly? Making non-GNOME applications be able to close? Seems like a bad thing to do...
I just want Gnome applications not to quit when I press ctrl-Q (which is just near ctrl-S for AZERTY keyboards). But nevermind the use case, it is not possible to assign shortcuts that are already mapped to Gnome actions (ctrl-Q is one of these shortcuts and it may exist other ones).
(In reply to comment #2) > But nevermind the use case The use case is everything. Without it, there's no point fixing this bug.
Ha ok you need the use case to reproduce the bug; in this case I agree. I just said that even if setting a shortcut with ctrl-Q is strange, it is for the moment not possible through the UI but certainly possible through dconf or a tool like that.
I think this is essentially the same as bug 675475, which complains about the inability to assign keyboard shortcuts that are used by the control-center shell. I think it might be possible to disable all shortcuts while editing the cell, by temporarily removing accel groups from the toplevel.
(In reply to comment #5) > I think this is essentially the same as bug 675475, which complains about the > inability to assign keyboard shortcuts that are used by the control-center > shell. Bug 675475 is actually about us not checking the modifiers properly (in addition to being afflicted with this particular bug). > I think it might be possible to disable all shortcuts while editing the cell, > by temporarily removing accel groups from the toplevel. We used to do that, of sorts, and removed it in 3d3f949f376af1596f73338e60d125683df66523. Even re-adding that code wouldn't have fixed it though, as the handler at the shell level got called first. The fix is a nice one-liner. commit 3b4f577652bf0544a2070df5ea473ba08b926ab0 Author: Bastien Nocera <hadess@hadess.net> Date: Mon Jul 16 17:03:36 2012 +0100 shell: Fix not being able to assign Ctrl+Q to a shortcut Because the shell window was capturing it before the key editing cell had a change to get to it. s/g_signal_connect/g_signal_connect_after/ https://bugzilla.gnome.org/show_bug.cgi?id=671448