diff options
-rw-r--r-- | src/web-view.c | 6 | ||||
-rw-r--r-- | src/web-view.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/web-view.c b/src/web-view.c index d018dcf..5d90b0c 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -556,3 +556,9 @@ mq_web_view_save(MqWebView *web_view) { web_view->scheme_methods->save_file(web_view, &web_view->scheme); } + +void +mq_web_view_grab_focus(MqWebView *web_view) +{ + gtk_widget_grab_focus(GTK_WIDGET(web_view)); +} diff --git a/src/web-view.h b/src/web-view.h index 0da60e0..7fff164 100644 --- a/src/web-view.h +++ b/src/web-view.h @@ -89,6 +89,9 @@ mq_web_view_open(MqWebView *web_view); void mq_web_view_save(MqWebView *web_view); +void +mq_web_view_grab_focus(MqWebView *web_view); + G_END_DECLS #endif /* MQ_WEB_VIEW_H */ |