The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Suppress keyboard input when command key is down

These changes was commited to the Birdfont repository Fri, 16 Oct 2015 13:03:10 +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>
Fri, 16 Oct 2015 13:03:10 +0000 (15:03 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Fri, 16 Oct 2015 13:03:10 +0000 (15:03 +0200)
commit 140b06e4a0765ec0cc65ca2b6826481b813aab5f
tree d76b1fb3d25b51dfb62adba9861a3a4cadf4c3d2
parent 21dce600b7acdcd0a17c9e6e093445b136b96aa4
Suppress keyboard input when command key is down

libbirdfont/ExportTool.vala
libbirdfont/Renderer/TextArea.vala
--- a/libbirdfont/ExportTool.vala +++ b/libbirdfont/ExportTool.vala @@ -196,8 +196,13 @@ public static void generate_html_document (string html_file, Font font) { File file = File.new_for_path (html_file); DataOutputStream os; - string name = ExportSettings.get_file_name (font); + string name; + #if MAC + name = ExportSettings.get_file_name_mac (font); + #else + name = ExportSettings.get_file_name (font); + #endif try { os = new DataOutputStream (file.create(FileCreateFlags.REPLACE_DESTINATION));
--- a/libbirdfont/Renderer/TextArea.vala +++ b/libbirdfont/Renderer/TextArea.vala @@ -240,7 +240,7 @@ text_changed (get_text ()); break; default: - if (!KeyBindings.has_ctrl ()) { + if (!KeyBindings.has_ctrl () && !KeyBindings.has_logo ()) { add_character (keyval); } break;