diff options
author | anekos | 2009-01-24 18:30:56 +0000 |
---|---|---|
committer | anekos | 2009-01-24 18:30:56 +0000 |
commit | db44aa321c6009a0b9d145edbcf4208844828d3c (patch) | |
tree | dd2b00cecc7e65fda624ba5007d5300910cb9475 | |
parent | 702899d3253d72c935a9a67a062816ae6700583e (diff) | |
download | vimperator-plugins-db44aa321c6009a0b9d145edbcf4208844828d3c.tar.bz2 |
display: none の要素は対象にしないようにした
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28983 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | walk-input.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/walk-input.js b/walk-input.js index 7a228d4..97391f1 100644 --- a/walk-input.js +++ b/walk-input.js @@ -1,5 +1,5 @@ // Vimperator plugin: 'Walk Input' -// Last Change: 2008-11-19 +// Last Change: 2009-01-25 // License: BSD // Version: 1.1 // Maintainer: Takayama Fumihiko <tekezo@pqrs.org> @@ -35,6 +35,8 @@ var walkinput = function (forward) { let r = doc.evaluate(xpath, doc, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); for (let i = 0, l = r.snapshotLength; i < l; ++i) { let e = r.snapshotItem(i); + if (/^none$/i.test(getComputedStyle(e, '').display)) + continue; let ef = {element: e, frame: frame}; list.push(ef); if (e == focused) { @@ -59,7 +61,6 @@ var walkinput = function (forward) { if (!current || current.frame != elem.frame) elem.frame.focus(); elem.element.focus(); - }; mappings.addUserMap([modes.NORMAL, modes.INSERT], ['<M-i>', '<A-i>'], |