From 81c2e01891e9b1d048c6cf66e7488dccc6d6c6aa Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Thu, 13 Jun 2024 16:59:20 -0300 Subject: [PATCH] Because GTK events are a mess... you update a library and now someone got your event. --- src/code_editor.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/code_editor.cr b/src/code_editor.cr index eb7bf57..20dee28 100644 --- a/src/code_editor.cr +++ b/src/code_editor.cr @@ -26,7 +26,7 @@ class CodeEditor < GtkSource::View end def setup_key_controller - key = Gtk::EventControllerKey.new(propagation_phase: :target) + key = Gtk::EventControllerKey.new(propagation_phase: :capture) key.key_pressed_signal.connect(->on_key_press(UInt32, UInt32, Gdk::ModifierType)) add_controller(key) end