GtkWidgetClass* widget_class;
guint clean_state;
+ if (gtk_window_get_focus (GTK_WINDOW (widget)) == NULL)
+ gtk_widget_grab_focus (midori_browser_get_current_tab (MIDORI_BROWSER (widget)));
+
if (event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK))
if (sokoke_window_activate_key (window, event))
return TRUE;
midori_view_focus_in_event (GtkWidget* widget,
GdkEventFocus* event)
{
- MidoriView* view = MIDORI_VIEW (widget);
-
/* Always propagate focus to the child web view */
- gtk_widget_grab_focus (view->web_view);
+ gtk_widget_grab_focus (midori_view_get_web_view (MIDORI_VIEW (widget)));
return TRUE;
}