summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);