1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 19:02:29 +01:00

do not go into insert mode on readOnly elems

This commit is contained in:
Martin Stubenschrott
2007-09-14 06:00:36 +00:00
parent 25d5a118ac
commit 7f7deab77e

View File

@@ -377,6 +377,9 @@ function Events() //{{{
return;
var elem = window.document.commandDispatcher.focusedElement;
if (elem && elem.readOnly)
return;
if (elem && elem instanceof HTMLInputElement &&
(elem.type.toLowerCase() == "text" || elem.type.toLowerCase() == "password"))
{