diff options
Diffstat (limited to 'views/widget/widget_gtk.cc')
-rw-r--r-- | views/widget/widget_gtk.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index 78f301a..796e50b 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -851,10 +851,12 @@ gboolean WidgetGtk::OnFocusIn(GtkWidget* widget, GdkEventFocus* event) { return false; // See description of got_initial_focus_in_ for details on this. - if (!got_initial_focus_in_) + if (!got_initial_focus_in_) { got_initial_focus_in_ = true; - else + SetInitialFocus(); + } else { focus_manager_->RestoreFocusedView(); + } return false; } |