diff --git a/qutebrowser/browser/webview.py b/qutebrowser/browser/webview.py index 19c34f9c3..22dca3878 100644 --- a/qutebrowser/browser/webview.py +++ b/qutebrowser/browser/webview.py @@ -446,10 +446,16 @@ class WebView(QWebView): """ frame = self.page().currentFrame() halfWidth = frame.scrollBarGeometry(Qt.Horizontal).width() / 2 - point = QPoint(halfWidth,1) + point = QPoint(halfWidth,10) event = QMouseEvent(QMouseEvent.MouseButtonPress, point, point, point, Qt.LeftButton, Qt.LeftButton, Qt.NoModifier) QApplication.sendEvent(self, event) + #frame.setFocus() + #frame.documentElement().setFocus() + #frame.documentElement().firstChild().setFocus() + #self.page().focusNextPrevChild(True) + #self.page().setContentEditable(True) + #self.triggerPageAction(QWebPage.MoveToNextChar) self._caret_exist = True else: