shell: Don't handle shortcuts with excess modifiers
Ctrl+Alt+W shouldn't be handled the same way as Ctrl+W. https://bugzilla.gnome.org/show_bug.cgi?id=675475
This commit is contained in:
parent
1fdfa6bc32
commit
ee32c358f1
1 changed files with 10 additions and 2 deletions
|
@ -1102,12 +1102,20 @@ window_key_press_event (GtkWidget *win,
|
|||
GdkEventKey *event,
|
||||
GnomeControlCenter *self)
|
||||
{
|
||||
GdkKeymap *keymap;
|
||||
gboolean retval;
|
||||
GdkModifierType state;
|
||||
|
||||
if (event->state == 0)
|
||||
return FALSE;
|
||||
|
||||
retval = FALSE;
|
||||
state = event->state;
|
||||
keymap = gdk_keymap_get_default ();
|
||||
gdk_keymap_add_virtual_modifiers (keymap, &state);
|
||||
state = state & gtk_accelerator_get_default_mod_mask ();
|
||||
|
||||
if (event->state != 0 &&
|
||||
(event->state & GDK_CONTROL_MASK))
|
||||
if (state == GDK_CONTROL_MASK)
|
||||
{
|
||||
switch (event->keyval)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue