From ee4ccf6144cbe42d87c20e92b95da844335bc490 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Sat, 5 Jan 2008 13:19:46 +0000 Subject: [PATCH] gi also works with textareas now --- content/mappings.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/mappings.js b/content/mappings.js index 75205d0a..cc14cd22 100644 --- a/content/mappings.js +++ b/content/mappings.js @@ -610,7 +610,9 @@ vimperator.Mappings = function () //{{{ vimperator.buffer.lastInputField.focus(); else { - var first = vimperator.buffer.element("@type='text'"); // does not work for textareas yet + var first = vimperator.buffer.evaluateXPath( + "//*[@type='text'] | //textarea | //xhtml:textarea").snapshotItem(0); + if (first) first.focus(); else