mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-21 17:31:25 +02:00
gi focuses the first textbox now as a fallback
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
* added full zoom, and changed keybindings slightly for text zoom
|
||||
* improvements for scrollable -- more -- prompt
|
||||
* sites like msn.com or yahoo.com don't focus search field anymore on keydown
|
||||
* new gi browser command to focus last used input box
|
||||
* new gi browser command to focus last used (or the first as a fallback) input box
|
||||
* edit TEXTAREAs with many vim commands in a vim and even visual mode if you :set noinsertmode
|
||||
* support for emacs/bash-like ctrl-e/a/u/k/h keys in single line text fields
|
||||
* support for * and # mappings to search for the text selection or the text under the cursor
|
||||
@@ -207,6 +207,7 @@
|
||||
* showmode setting which shows the current mode in the command line (patch from Виктор Кожухаров)
|
||||
* gh goes home :) gH in a new tab
|
||||
* :open! bypasses cache
|
||||
|
||||
* :buffer and :buffers support (patch from Lars Kindler)
|
||||
* added :edit, :e and :tabedit aliases for :open, :tabopen
|
||||
* settings can now be changed with += and -= like in vim (patch from Виктор Кожухаров)
|
||||
|
||||
+7
-1
@@ -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
|
||||
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