This commit is contained in:
Florian Bruhin 2014-07-16 10:40:11 +02:00
parent 0812057cbc
commit 8757f016cb
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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.