Commit 3eb94ff8 authored by Guido Gunther's avatar Guido Gunther
Browse files

home: Allow keyboard input when unfolded



This allows application search to receive keyboard input and will
e.g. allow keyboard based window switching later on.
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent eb9dd0ef
......@@ -300,6 +300,7 @@ phosh_home_set_state (PhoshHome *self, PhoshHomeState state)
{
GtkStyleContext *context;
gboolean enable_animations;
gboolean kbd_interactivity;
g_return_if_fail (PHOSH_IS_HOME (self));
......@@ -322,11 +323,14 @@ phosh_home_set_state (PhoshHome *self, PhoshHomeState state)
gtk_style_context_add_class(context, "phosh-home-btn-image-down");
gtk_style_context_remove_class(context, "phosh-home-btn-image-up");
gtk_widget_hide (self->btn_osk);
kbd_interactivity = TRUE;
} else {
gtk_style_context_remove_class(context, "phosh-home-btn-image-down");
gtk_style_context_add_class(context, "phosh-home-btn-image-up");
gtk_widget_show (self->btn_osk);
kbd_interactivity = FALSE;
}
phosh_layer_surface_set_kbd_interactivity (PHOSH_LAYER_SURFACE (self), kbd_interactivity);
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_HOME_STATE]);
}
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