diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/mozilla-embed.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp index d8ffc136b..f5f600934 100644 --- a/embed/mozilla/mozilla-embed.cpp +++ b/embed/mozilla/mozilla-embed.cpp @@ -217,7 +217,10 @@ mozilla_embed_grab_focus (GtkWidget *widget) { GtkWidget *child; - child = gtk_bin_get_child (GTK_BIN (widget)); + /* What we want to focus here is the MozContainer inside the + * GtkMozEmbed, because the GtkMozEmbed itself does not gain focus. + */ + child = gtk_bin_get_child (GTK_BIN (MOZILLA_EMBED (widget)->priv->moz_embed)); if (child && GTK_WIDGET_REALIZED (child)) gtk_widget_grab_focus (child); |