1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 15: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

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;