summaryrefslogtreecommitdiff
path: root/src/webview.cpp
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 /src/webview.cpp
parenthide suggestions on ESC key (diff)
downloadrekonq-9de0047a2d07dd77905a4d6160b6387af7fac4a0.tar.xz
A "nice" hack to fix bug 211557
BUG: 211557
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp8
1 files changed, 8 insertions, 0 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 )