Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit eeb4205

Browse files
Make the Linux GTK widget focusable (#40163)
Make the Linux GTK widget focusable
1 parent a82207c commit eeb4205

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shell/platform/linux/fl_view.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,9 @@ static void fl_view_class_init(FlViewClass* klass) {
667667
fl_view_accessible_get_type());
668668
}
669669

670-
static void fl_view_init(FlView* self) {}
670+
static void fl_view_init(FlView* self) {
671+
gtk_widget_set_can_focus(GTK_WIDGET(self), TRUE);
672+
}
671673

672674
G_MODULE_EXPORT FlView* fl_view_new(FlDartProject* project) {
673675
return static_cast<FlView*>(

0 commit comments

Comments
 (0)