From bd3381321d8f1b0b8260f2e0c30749ecd773288c Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 9 Mar 2023 07:26:57 -0800 Subject: [PATCH] Make the Linux GTK widget focusable (flutter/engine#40163) Make the Linux GTK widget focusable --- engine/src/flutter/shell/platform/linux/fl_view.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/linux/fl_view.cc b/engine/src/flutter/shell/platform/linux/fl_view.cc index 950e505821..cb77e0c9be 100644 --- a/engine/src/flutter/shell/platform/linux/fl_view.cc +++ b/engine/src/flutter/shell/platform/linux/fl_view.cc @@ -667,7 +667,9 @@ static void fl_view_class_init(FlViewClass* klass) { fl_view_accessible_get_type()); } -static void fl_view_init(FlView* self) {} +static void fl_view_init(FlView* self) { + gtk_widget_set_can_focus(GTK_WIDGET(self), TRUE); +} G_MODULE_EXPORT FlView* fl_view_new(FlDartProject* project) { return static_cast(