Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
Because GTK events are a mess... you update a library and now someone…
Browse files Browse the repository at this point in the history
… got your event.
  • Loading branch information
hugopl committed Jun 13, 2024
1 parent 90bcf2c commit 81c2e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/code_editor.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81c2e01

Please sign in to comment.