Skip to content

Commit 74eb5da

Browse files
committed
Fixed control center kb shortcuts not always working
1 parent c7aee6b commit 74eb5da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/controlCenter/controlCenter.vala

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ namespace SwayNotificationCenter {
144144
// sometimes being passed through to unfucused application
145145
// Ex: Firefox in a fullscreen YouTube video
146146
key_controller = new Gtk.EventControllerKey ();
147+
key_controller.set_propagation_phase (Gtk.PropagationPhase.CAPTURE);
147148
((Gtk.Widget) this).add_controller (key_controller);
148149
key_controller.key_released.connect (key_released_event_cb);
149150
key_controller.key_pressed.connect (key_press_event_cb);

0 commit comments

Comments
 (0)