keybindings: Allow using keycodes directly for overlay-key

The reason MetaKeyCombo has a keycode value at all is *not* to store the
devirtualized keycode from the keysym, but instead to allow people that
type in "0x55" into the preference. Everything except the overlay-key
respected this. Make the overlay-key binding respect this.
This commit is contained in:
Jasper St. Pierre 2015-01-06 18:32:11 -08:00
parent a8bf7934fb
commit 3ff8b0051d

View File

@ -537,14 +537,7 @@ reload_combos (MetaKeyBindingManager *keys)
determine_keymap_num_levels (keys);
if (keys->overlay_key_combo.keysym != 0)
{
keys->overlay_key_combo.keycode =
get_first_keycode_for_keysym (keys, keys->overlay_key_combo.keysym);
}
else
{
keys->overlay_key_combo.keycode = 0;
}
keys->overlay_key_combo.keycode = get_first_keycode_for_keysym (keys, keys->overlay_key_combo.keysym);
reload_iso_next_group_combos (keys);