Commit f55b433e authored by Erik Reider's avatar Erik Reider

Fixed inline replies not displaying and not grabbing keyboard input in CC. Fixes #542

parent 6d5077eb
...@@ -257,7 +257,9 @@ namespace SwayNotificationCenter { ...@@ -257,7 +257,9 @@ namespace SwayNotificationCenter {
} }
private bool key_press_event_cb (uint keyval, uint keycode, Gdk.ModifierType state) { private bool key_press_event_cb (uint keyval, uint keycode, Gdk.ModifierType state) {
if (this.get_focus () is Gtk.Entry) return false; if (get_focus () is Gtk.Text) {
return false;
}
var children = list_box_controller.get_children (); var children = list_box_controller.get_children ();
var group = (NotificationGroup) list_box.get_focus_child (); var group = (NotificationGroup) list_box.get_focus_child ();
switch (Gdk.keyval_name (keyval)) { switch (Gdk.keyval_name (keyval)) {
......
...@@ -535,7 +535,7 @@ namespace SwayNotificationCenter { ...@@ -535,7 +535,7 @@ namespace SwayNotificationCenter {
// supports ON_DEMAND layer shell keyboard interactivity // supports ON_DEMAND layer shell keyboard interactivity
if (!ConfigModel.instance.notification_inline_replies if (!ConfigModel.instance.notification_inline_replies
|| (ConfigModel.instance.layer_shell || (ConfigModel.instance.layer_shell
&& swaync_daemon.has_layer_on_demand && !swaync_daemon.has_layer_on_demand
&& notification_type == NotificationType.POPUP)) { && notification_type == NotificationType.POPUP)) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment