The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Fix Cyrillic input etc.

Changes made to birdfont/GtkWindow.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- birdfont/GtkWindow.vala +++ birdfont/GtkWindow.vala @@ -128,16 +128,33 @@ } key_press_event.connect ((t, event) => { - TabContent.key_press (event.keyval); - + unichar c; + + c = keyval_to_unicode (event.keyval); + + if (c != '\0') { + TabContent.key_press (c); + } else { + TabContent.key_press (event.keyval); + } + return false; }); key_release_event.connect ((t, event) => { - TabContent.key_release (event.keyval); + unichar c; + + c = keyval_to_unicode (event.keyval); + + if (c != '\0') { + TabContent.key_release (c); + } else { + TabContent.key_release (event.keyval); + } return false; }); + size_allocate.connect(() => { GlyphCanvas.redraw ();