From 9de0047a2d07dd77905a4d6160b6387af7fac4a0 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 5 Apr 2010 00:17:30 +0200 Subject: A "nice" hack to fix bug 211557 BUG: 211557 --- src/webview.cpp | 8 ++++++++ src/webview.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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); -- cgit v1.2.1