summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tab-page.c6
-rw-r--r--src/tab-page.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/tab-page.c b/src/tab-page.c
index 3cfd957..29f1721 100644
--- a/src/tab-page.c
+++ b/src/tab-page.c
@@ -312,3 +312,9 @@ mq_tab_page_focus_uri_entry(MqTabPage *tab_page)
mq_navigation_toolbar_focus_uri_entry(
MQ_NAVIGATION_TOOLBAR(tab_page->navigation_toolbar));
}
+
+void
+mq_tab_page_focus_web_view(MqTabPage *tab_page)
+{
+ mq_web_view_grab_focus(MQ_WEB_VIEW(tab_page->web_view));
+}
diff --git a/src/tab-page.h b/src/tab-page.h
index 03f50ed..6ec835e 100644
--- a/src/tab-page.h
+++ b/src/tab-page.h
@@ -98,6 +98,9 @@ mq_tab_page_end_scrolling_tab_labels(MqTabPage *node);
void
mq_tab_page_focus_uri_entry(MqTabPage *tab_page);
+void
+mq_tab_page_focus_web_view(MqTabPage *tab_page);
+
G_END_DECLS
#endif /* MQ_TAB_PAGE_H */