Commit 2f21c61
Suppres input in text area when ctrl is down
Changed files (3)
modifiedlibbirdfont/MenuTab.valamodifiedlibbirdfont/OverView.valamodifiedlibbirdfont/Renderer/TextArea.vala
Diff
@@ -155,7 +155,12 @@ public class MenuTab : FontDisplay { // key up for all modifiers will be ignored if events are suppressed if (suppress_event) {- KeyBindings.reset ();+ IdleSource idle = new IdleSource ();+ idle.set_callback (() => {+ KeyBindings.reset ();+ return false;+ });+ idle.attach (null); } return true;@@ -804,7 +804,7 @@ public class OverView : FontDisplay { update_item_list (); GlyphCanvas.redraw (); - if (KeyBindings.modifier == CTRL) {+ if (KeyBindings.has_ctrl ()) { return; } @@ -240,7 +240,9 @@ public class TextArea : Widget { text_changed (get_text ()); break; default:- add_character (keyval);+ if (!KeyBindings.has_ctrl ()) {+ add_character (keyval);+ } break; }