Add comment about CodeMirror.
This commit is contained in:
parent
46c19012ab
commit
7aea12ad35
@ -207,6 +207,8 @@ class WebView(QWebView):
|
|||||||
log.mouse.debug("<object type='{}'> clicked.".format(objtype))
|
log.mouse.debug("<object type='{}'> clicked.".format(objtype))
|
||||||
return config.get('input', 'insert-mode-on-plugins')
|
return config.get('input', 'insert-mode-on-plugins')
|
||||||
elif tag == 'div':
|
elif tag == 'div':
|
||||||
|
# CodeMirror is some java-script editor which hides the underlying
|
||||||
|
# textarea, but is editable.
|
||||||
if any([c.startswith('CodeMirror') for c in elem.classes()]):
|
if any([c.startswith('CodeMirror') for c in elem.classes()]):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user