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

pass keys to the HTMLSelectElement

This commit is contained in:
Martin Stubenschrott
2008-05-14 16:27:34 +00:00
parent 00dd55021f
commit 8f50f96aa8
2 changed files with 6 additions and 2 deletions

2
NEWS
View File

@@ -11,6 +11,8 @@
of bringing up the bookmarks/history window
* IMPORTANT: "B" mapping now works just like :buffers, old bufferwindow will be removed
at some time. Use B5gt to jump to the 5th tab.
* also go to INSERT mode for HTMLSelectElements, so you can type text to go to element
in drop down boxes
* new "S" flag for "complete" to list google suggestions in :open vimp and
pressing tab (disabled by default). Also added new 'suggestengines' option.
* gi accepts now a count to jump to the nth input field

View File

@@ -925,8 +925,10 @@ liberator.Events = function () //{{{
// dump("=+++++++++=\n" + liberator.util.objectToString(event.target) + "\n")
// dump (elem + ": " + win + "\n");//" - target: " + event.target + " - origtarget: " + event.originalTarget + " - expltarget: " + event.explicitOriginalTarget + "\n");
if (elem && elem instanceof HTMLInputElement &&
(elem.type.toLowerCase() == "text" || elem.type.toLowerCase() == "password"))
if (elem && (
(elem instanceof HTMLInputElement && (elem.type.toLowerCase() == "text" || elem.type.toLowerCase() == "password")) ||
(elem instanceof HTMLSelectElement)
))
{
this.wantsModeReset = false;
liberator.mode = liberator.modes.INSERT;