1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 22:37:58 +01:00

gi also works with textareas now

This commit is contained in:
Martin Stubenschrott
2008-01-05 13:19:46 +00:00
parent 2503c94383
commit ee4ccf6144

View File

@@ -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