GNOME Bugzilla – Bug 771058
The keyboard panel stopped working for a lot of shortcuts
Last modified: 2016-09-08 23:40:44 UTC
I was pinged about this on IRC because gnome-shell's shortcut grabbing looked like an obvious suspect, but it turned out to be the panel itself disallowing any shortcuts that use the Super modifier or Tab keyval. Unless we want to modify GTK+, the first patch (or something in its spirit) is correct. I'm less certain about the second patch, as that code was clearly added for some reason (unknown to myself).
Created attachment 335111 [details] [review] keyboard: Allow Tab in accels gtk_accelerator_valid() doesn't accept Tab as keyval, so using it to check whether a shortcut is valid breaks commonly used shortcuts like Alt+Tab. Unbreak those by adding a small wrapper that special-cases Tab-with-modifiers.
Created attachment 335112 [details] [review] keyboard: Remove additional filtering of default mod mask The mask returned by gtk_accelerator_get_default_mod_mask() should work without additional filtering, in particular when it is overly restrictive - a lot of shortcuts use the Super modifier nowadays, so stop filtering it out.
Created attachment 335124 [details] [review] keyboard: Allow Tab in accels gtk_accelerator_valid() doesn't accept Tab as keyval, so using it to check whether a shortcut is valid breaks commonly used shortcuts like Alt+Tab. Unbreak those by adding a small wrapper that special-cases Tab-with-modifiers.
Created attachment 335125 [details] [review] keyboard: Remove additional filtering of default mod mask The mask returned by gtk_accelerator_get_default_mod_mask() should work without additional filtering, in particular when it is overly restrictive - a lot of shortcuts use the Super modifier nowadays, so stop filtering it out.
Created attachment 335126 [details] [review] keyboard: Normalise Shift and Tab in shortcuts
Attachment 335124 [details] pushed as 4beb7ce - keyboard: Allow Tab in accels Attachment 335125 [details] pushed as 7896390 - keyboard: Remove additional filtering of default mod mask Attachment 335126 [details] pushed as 45fb0a4 - keyboard: Normalise Shift and Tab in shortcuts
*** Bug 771084 has been marked as a duplicate of this bug. ***