lib: ensure display widget is focusable

Otherwise we won't get keyboard input.
This commit is contained in:
Christian Hergert 2023-02-15 11:34:17 -08:00
parent 7c63e051fd
commit 3d89b77ed2

View File

@ -723,6 +723,8 @@ mks_display_init (MksDisplay *self)
self, self,
G_CONNECT_SWAPPED); G_CONNECT_SWAPPED);
gtk_widget_add_controller (GTK_WIDGET (self), controller); gtk_widget_add_controller (GTK_WIDGET (self), controller);
gtk_widget_set_focusable (GTK_WIDGET (self), TRUE);
} }
GtkWidget * GtkWidget *