summaryrefslogtreecommitdiffstats
path: root/WebKit/qt/declarative/qdeclarativewebview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/qt/declarative/qdeclarativewebview.cpp')
-rw-r--r--WebKit/qt/declarative/qdeclarativewebview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebKit/qt/declarative/qdeclarativewebview.cpp b/WebKit/qt/declarative/qdeclarativewebview.cpp
index 94f08bd..e26889e 100644
--- a/WebKit/qt/declarative/qdeclarativewebview.cpp
+++ b/WebKit/qt/declarative/qdeclarativewebview.cpp
@@ -253,10 +253,12 @@ void QDeclarativeWebView::init()
setAcceptedMouseButtons(Qt::LeftButton);
setFlag(QGraphicsItem::ItemHasNoContents, true);
+ setFlag(QGraphicsItem::ItemIsFocusScope, true);
setClip(true);
d->view = new GraphicsWebView(this);
d->view->setResizesToContents(true);
+ d->view->setFocus();
QWebPage* wp = new QDeclarativeWebPage(this);
setPage(wp);
connect(d->view, SIGNAL(geometryChanged()), this, SLOT(updateDeclarativeWebViewSize()));