mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-19 05:13:32 +02:00
gi focuses the first textbox now as a fallback
This commit is contained in:
3
NEWS
3
NEWS
@@ -36,7 +36,7 @@
|
|||||||
* added full zoom, and changed keybindings slightly for text zoom
|
* added full zoom, and changed keybindings slightly for text zoom
|
||||||
* improvements for scrollable -- more -- prompt
|
* improvements for scrollable -- more -- prompt
|
||||||
* sites like msn.com or yahoo.com don't focus search field anymore on keydown
|
* 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
|
* 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 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
|
* 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 Виктор Кожухаров)
|
* showmode setting which shows the current mode in the command line (patch from Виктор Кожухаров)
|
||||||
* gh goes home :) gH in a new tab
|
* gh goes home :) gH in a new tab
|
||||||
* :open! bypasses cache
|
* :open! bypasses cache
|
||||||
|
|
||||||
* :buffer and :buffers support (patch from Lars Kindler)
|
* :buffer and :buffers support (patch from Lars Kindler)
|
||||||
* added :edit, :e and :tabedit aliases for :open, :tabopen
|
* added :edit, :e and :tabedit aliases for :open, :tabopen
|
||||||
* settings can now be changed with += and -= like in vim (patch from Виктор Кожухаров)
|
* settings can now be changed with += and -= like in vim (patch from Виктор Кожухаров)
|
||||||
|
|||||||
@@ -608,8 +608,14 @@ vimperator.Mappings = function () //{{{
|
|||||||
{
|
{
|
||||||
if (vimperator.buffer.lastInputField)
|
if (vimperator.buffer.lastInputField)
|
||||||
vimperator.buffer.lastInputField.focus();
|
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();
|
vimperator.beep();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
shortHelp: "Focus last used input field"
|
shortHelp: "Focus last used input field"
|
||||||
|
|||||||
Reference in New Issue
Block a user