The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Delete key bindings

These changes was commited to the Birdfont repository Thu, 27 Aug 2015 08:47:07 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Thu, 27 Aug 2015 08:47:07 +0000 (10:47 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Thu, 27 Aug 2015 08:47:32 +0000 (10:47 +0200)
commit 32706cabd967eb5e40b623a494908bdcc2600e47
tree 2e3d0c019291ea17a8e2cf58d9ba1bf72373eae1
parent 77eaba574e3e4bf291a02334ab92a2cd1362bf59
Delete key bindings

libbirdfont/SettingsDisplay.vala
--- a/libbirdfont/SettingsDisplay.vala +++ b/libbirdfont/SettingsDisplay.vala @@ -102,13 +102,13 @@ public override void key_release (uint keyval) { SettingsItem old_key_binding; - if (!is_modifier_key (keyval)) { + if (!is_modifier_key (keyval) || keyval == Key.BACK_SPACE || keyval == Key.DEL) { if (update_key_bindings) { - if (keyval == Key.BACK_SPACE) { + if (keyval == Key.BACK_SPACE || keyval == Key.DEL) { update_key_bindings = false; new_key_bindings.active = false; new_key_bindings.menu_item.modifiers = NONE; - new_key_bindings.menu_item.key = '\0'; + new_key_bindings.menu_item.key = '\0'; } else if (KeyBindings.get_mod_from_key (keyval) == NONE) { if (has_key_binding (KeyBindings.modifier, (unichar) keyval)) {