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:
@@ -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"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user