[mutter] keybindings: Allow using keycodes directly for overlay-key
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] keybindings: Allow using keycodes directly for overlay-key
- Date: Wed, 7 Jan 2015 03:47:08 +0000 (UTC)
commit 3ff8b0051d038b1835c7c4d4e009cf13ad17a636
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Jan 6 18:32:11 2015 -0800
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.
src/core/keybindings.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 3718a32..cd3f6f7 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]