From 372471280df74fbf62c49260adb8d68d3a9a4091 Mon Sep 17 00:00:00 2001 From: anekos Date: Mon, 27 Jun 2011 23:34:46 +0900 Subject: input[@disabled="disabled"] を無視するようにした --- walk-input.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'walk-input.js') diff --git a/walk-input.js b/walk-input.js index a1609bc..be214aa 100644 --- a/walk-input.js +++ b/walk-input.js @@ -1,6 +1,6 @@ // Vimperator plugin: 'Walk Input' // License: BSD -// Version: 1.2.1 +// Version: 1.2.2 // Maintainer: Takayama Fumihiko // anekos @@ -20,7 +20,7 @@ // PLUGIN_INFO {{{ let INFO = - @@ -82,7 +82,7 @@ var types = [ "tel", "color", ].map(function(type) "@type=" + type.quote()).join(" or "); -var xpath = '//input[' + types + ' or not(@type)] | //textarea'; +var xpath = '//input[(' + types + ' or not(@type)) and not(@disabled="disabled")] | //textarea'; function isVisible (elem) { while (elem && !(elem instanceof HTMLDocument)) { @@ -129,6 +129,7 @@ var walkinput = function (forward) { var elem = forward ? (next || list[0]) : (prev || list[list.length - 1]); + liberator.log(elem.element); if (!current || current.frame != elem.frame) elem.frame.focus(); elem.element.focus(); -- cgit v1.2.3