Fix lint
This commit is contained in:
parent
0812057cbc
commit
8757f016cb
@ -249,7 +249,7 @@ def is_editable(elem, strict=False):
|
|||||||
# pylint: disable=too-many-return-statements
|
# pylint: disable=too-many-return-statements
|
||||||
roles = ('combobox', 'textbox')
|
roles = ('combobox', 'textbox')
|
||||||
log.misc.debug("Checking if element is editable: {}".format(
|
log.misc.debug("Checking if element is editable: {}".format(
|
||||||
compact_text(elem.toOuterXml(), 500)))
|
compact_text(elem.toOuterXml(), 500)))
|
||||||
tag = elem.tagName().lower()
|
tag = elem.tagName().lower()
|
||||||
if is_content_editable(elem) and is_writable(elem):
|
if is_content_editable(elem) and is_writable(elem):
|
||||||
return True
|
return True
|
||||||
|
@ -511,6 +511,7 @@ class WebView(QWebView):
|
|||||||
super().mousePressEvent(e)
|
super().mousePressEvent(e)
|
||||||
|
|
||||||
def mouseReleaseEvent(self, e):
|
def mouseReleaseEvent(self, e):
|
||||||
|
"""Extend mouseReleaseEvent to enter insert mode if needed."""
|
||||||
super().mouseReleaseEvent(e)
|
super().mouseReleaseEvent(e)
|
||||||
# We want to make sure we check the focus element after the WebView is
|
# We want to make sure we check the focus element after the WebView is
|
||||||
# updated completely.
|
# updated completely.
|
||||||
|
Loading…
Reference in New Issue
Block a user