The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Thu, 27 Aug 2015 08:36:14 +0000 (10:36 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Thu, 27 Aug 2015 08:36:14 +0000 (10:36 +0200)
commit 77eaba574e3e4bf291a02334ab92a2cd1362bf59
tree 201730b3bd98cf41d1a16ecaa00ce09abd026761
parent 1788ea269805fdb71d69eca785ed35e687315d70
Ignore case in key bindings

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 ();