summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-05 00:17:30 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-05 00:17:30 +0200
commit9de0047a2d07dd77905a4d6160b6387af7fac4a0 (patch)
treebc26fd7e9986e4c373a30f97ac24d82146bec41d
parenthide suggestions on ESC key (diff)
downloadrekonq-9de0047a2d07dd77905a4d6160b6387af7fac4a0.tar.xz
A "nice" hack to fix bug 211557
BUG: 211557
-rw-r--r--src/webview.cpp8
-rw-r--r--src/webview.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 6e3718e0..2083cef3 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -425,6 +425,14 @@ void WebView::keyPressEvent(QKeyEvent *event)
return;
}
}
+
+ QWebHitTestResult result = page()->mainFrame()->hitTestContent( mapFromGlobal( QCursor::pos() ) );
+
+ if( result.isContentEditable() )
+ {
+ KWebView::keyPressEvent(event);
+ return;
+ }
// Auto Scrolling
if ( event->modifiers() == Qt::ShiftModifier )
diff --git a/src/webview.h b/src/webview.h
index 59105267..85ebf46a 100644
--- a/src/webview.h
+++ b/src/webview.h
@@ -52,7 +52,7 @@ public:
protected:
void contextMenuEvent(QContextMenuEvent *event);
- void mousePressEvent(QMouseEvent *event);// need to be ported
+ void mousePressEvent(QMouseEvent *event); // need to be ported
void mouseMoveEvent(QMouseEvent *event);
void keyPressEvent(QKeyEvent *event);