diff options
author | Florian Bruhin <git@the-compiler.org> | 2017-02-24 15:12:35 +0100 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2017-02-24 15:12:35 +0100 |
commit | 23183bd918c195a5986220ee52592994c7003fea (patch) | |
tree | 196b9ab420074aba0823e6485e05941a6e3a4b63 | |
parent | 02c913238b6e4b2e0186a69d30c873737b6b8fa2 (diff) | |
download | qutebrowser-23183bd918c195a5986220ee52592994c7003fea.tar.gz qutebrowser-23183bd918c195a5986220ee52592994c7003fea.zip |
Fix hinting in ACE editors
-rw-r--r-- | qutebrowser/javascript/webelem.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/qutebrowser/javascript/webelem.js b/qutebrowser/javascript/webelem.js index aef2fa3c8..665cd4785 100644 --- a/qutebrowser/javascript/webelem.js +++ b/qutebrowser/javascript/webelem.js @@ -109,15 +109,17 @@ window._qutebrowser.webelem = (function() { } var style = win.getComputedStyle(elem, null); - // FIXME:qtwebengine do we need this <area> handling? - // visibility and display style are misleading for area tags and they - // get "display: none" by default. - // See https://github.com/vimperator/vimperator-labs/issues/236 - if (elem.nodeName.toLowerCase() !== "area" && ( - style.getPropertyValue("visibility") !== "visible" || + if (style.getPropertyValue("visibility") !== "visible" || style.getPropertyValue("display") === "none" || - style.getPropertyValue("opacity") === "0")) { - return false; + style.getPropertyValue("opacity") === "0") { + // FIXME:qtwebengine do we need this <area> handling? + // visibility and display style are misleading for area tags and + // they get "display: none" by default. + // See https://github.com/vimperator/vimperator-labs/issues/236 + if (elem.nodeName.toLowerCase() !== "area" && + !elem.classList.contains("ace_text-input")) { + return false; + } } return true; |