Make it clearer we schedule an insertmode check if hittest is null.
This commit is contained in:
parent
c1d9f70fd6
commit
2b123bdeb9
@ -215,7 +215,12 @@ class WebView(QWebView):
|
|||||||
# me, but it works this way.
|
# me, but it works this way.
|
||||||
hitresult = frame.hitTestContent(pos)
|
hitresult = frame.hitTestContent(pos)
|
||||||
if hitresult.isNull():
|
if hitresult.isNull():
|
||||||
|
# For some reason, the whole hitresult can be null sometimes (e.g.
|
||||||
|
# on doodle menu links). If this is the case, we schedule a check
|
||||||
|
# later (in mouseReleaseEvent) which uses webelem.focus_elem.
|
||||||
log.mouse.debug("Hitresult is null!")
|
log.mouse.debug("Hitresult is null!")
|
||||||
|
self._check_insertmode = True
|
||||||
|
return
|
||||||
elem = hitresult.element()
|
elem = hitresult.element()
|
||||||
if elem.isNull():
|
if elem.isNull():
|
||||||
# For some reason, the hitresult element can be a null element
|
# For some reason, the hitresult element can be a null element
|
||||||
|
Loading…
Reference in New Issue
Block a user