mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 14:05:45 +01:00
gi focuses the first textbox now as a fallback
This commit is contained in:
@@ -608,8 +608,14 @@ vimperator.Mappings = function () //{{{
|
||||
{
|
||||
if (vimperator.buffer.lastInputField)
|
||||
vimperator.buffer.lastInputField.focus();
|
||||
else // TODO: Focus first input field on page, or beep if none found
|
||||
vimperator.beep();
|
||||
else
|
||||
{
|
||||
var first = vimperator.buffer.element("@type='text'"); // does not work for textareas yet
|
||||
if (first)
|
||||
first.focus();
|
||||
else
|
||||
vimperator.beep();
|
||||
}
|
||||
},
|
||||
{
|
||||
shortHelp: "Focus last used input field"
|
||||
|
||||
Reference in New Issue
Block a user