diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-05 00:17:30 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-05 00:17:30 +0200 |
commit | 9de0047a2d07dd77905a4d6160b6387af7fac4a0 (patch) | |
tree | bc26fd7e9986e4c373a30f97ac24d82146bec41d /src/webview.cpp | |
parent | hide suggestions on ESC key (diff) | |
download | rekonq-9de0047a2d07dd77905a4d6160b6387af7fac4a0.tar.xz |
A "nice" hack to fix bug 211557
BUG: 211557
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 8 |
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 ) |