summaryrefslogtreecommitdiff
path: root/Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp')
-rw-r--r--Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp b/Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp
index afe4a569c..f1615d4ac 100644
--- a/Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp
+++ b/Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp
@@ -28,6 +28,7 @@
#include "config.h"
#include "PlatformWebView.h"
+#include <WebKit2/WKViewPrivate.h>
#include <gtk/gtk.h>
namespace WTR {
@@ -70,6 +71,8 @@ WKPageRef PlatformWebView::page()
void PlatformWebView::focus()
{
+ WKViewSetFocus(m_view, true);
+ setWindowIsKey(true);
}
WKRect PlatformWebView::windowFrame()