The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – 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
[Thu, 27 Aug 2015 08:47:07 +0000]

Updated Files

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)) {