mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 07:14:16 +01:00
do not go into insert mode on readOnly elems
This commit is contained in:
@@ -377,6 +377,9 @@ function Events() //{{{
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
var elem = window.document.commandDispatcher.focusedElement;
|
var elem = window.document.commandDispatcher.focusedElement;
|
||||||
|
if (elem && elem.readOnly)
|
||||||
|
return;
|
||||||
|
|
||||||
if (elem && elem instanceof HTMLInputElement &&
|
if (elem && elem instanceof HTMLInputElement &&
|
||||||
(elem.type.toLowerCase() == "text" || elem.type.toLowerCase() == "password"))
|
(elem.type.toLowerCase() == "text" || elem.type.toLowerCase() == "password"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user