diff options
author | Florian Bruhin <git@the-compiler.org> | 2014-07-16 10:40:11 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2014-07-16 10:40:11 +0200 |
commit | 8757f016cb846927b447c6cdc0f6c6f7a2a95135 (patch) | |
tree | fbf78e5325639d795e625e68b44d118a8c4063fc | |
parent | 0812057cbc17777be7ecbab5ef02383aff05ddbe (diff) | |
download | qutebrowser-8757f016cb846927b447c6cdc0f6c6f7a2a95135.tar.gz qutebrowser-8757f016cb846927b447c6cdc0f6c6f7a2a95135.zip |
Fix lint
-rw-r--r-- | qutebrowser/utils/webelem.py | 2 | ||||
-rw-r--r-- | qutebrowser/widgets/webview.py | 1 |
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. |