keybindings: Apply the same fix for keycodes to the GrabAccelerator API

This commit is contained in:
Jasper St. Pierre 2015-01-06 18:43:12 -08:00
parent 3ff8b0051d
commit a3b8dcbd04

View File

@ -1423,7 +1423,9 @@ meta_display_grab_accelerator (MetaDisplay *display,
}
devirtualize_modifiers (keys, modifiers, &mask);
keycode = get_first_keycode_for_keysym (keys, keysym);
if (keysym != 0)
keycode = get_first_keycode_for_keysym (keys, keysym);
if (keycode == 0)
return META_KEYBINDING_ACTION_NONE;