summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qutebrowser/utils/webelem.py2
-rw-r--r--qutebrowser/widgets/webview.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/qutebrowser/utils/webelem.py b/qutebrowser/utils/webelem.py
index ffe10885d..d11847419 100644
--- a/qutebrowser/utils/webelem.py
+++ b/qutebrowser/utils/webelem.py
@@ -249,7 +249,7 @@ def is_editable(elem, strict=False):
# pylint: disable=too-many-return-statements
roles = ('combobox', 'textbox')
log.misc.debug("Checking if element is editable: {}".format(
- compact_text(elem.toOuterXml(), 500)))
+ compact_text(elem.toOuterXml(), 500)))
tag = elem.tagName().lower()
if is_content_editable(elem) and is_writable(elem):
return True
diff --git a/qutebrowser/widgets/webview.py b/qutebrowser/widgets/webview.py
index 142e4e993..89a2a4cbd 100644
--- a/qutebrowser/widgets/webview.py
+++ b/qutebrowser/widgets/webview.py
@@ -511,6 +511,7 @@ class WebView(QWebView):
super().mousePressEvent(e)
def mouseReleaseEvent(self, e):
+ """Extend mouseReleaseEvent to enter insert mode if needed."""
super().mouseReleaseEvent(e)
# We want to make sure we check the focus element after the WebView is
# updated completely.