The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Fix scroll in overview on Mac OS

Changes made to libbirdfont/AbstractMenu.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/AbstractMenu.vala +++ libbirdfont/AbstractMenu.vala @@ -77,18 +77,19 @@ ToolItem tm; unichar lower_keyval = ((unichar) keyval).tolower (); + display = current_display.get_name (); + + if (current_display is Glyph) { + display = "Glyph"; + } + foreach (MenuItem item in sorted_menu_items) { - if (item.key.tolower () == lower_keyval && item.modifiers == KeyBindings.modifier) { + if (item.key.tolower () == lower_keyval + && item.modifiers == KeyBindings.modifier + && item.in_display (display)) { - display = current_display.get_name (); - - if (current_display is Glyph) { - display = "Glyph"; - } - if (!current_display.needs_modifier () || item.modifiers != NONE) { if (!SettingsDisplay.update_key_bindings - && item.in_display (display) && !(item is ToolItem)) { item.action (); return;