The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Ignore case in key bindings

These changes was commited to the Birdfont repository Thu, 27 Aug 2015 08:36:14 +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:36:14 +0000]

Updated Files

libbirdfont/AbstractMenu.vala
--- a/libbirdfont/AbstractMenu.vala +++ b/libbirdfont/AbstractMenu.vala @@ -75,9 +75,10 @@ string display; FontDisplay current_display = MainWindow.get_current_display (); ToolItem tm; + unichar lower_keyval = ((unichar) keyval).tolower (); foreach (MenuItem item in sorted_menu_items) { - if (item.key == (unichar) keyval && item.modifiers == KeyBindings.modifier) { + if (item.key.tolower () == lower_keyval && item.modifiers == KeyBindings.modifier) { display = current_display.get_name ();