1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 04:14:12 +01:00

Cut down on some error console noise when generating XPCOM stubs.

This commit is contained in:
Kris Maglione
2010-10-03 22:15:49 -04:00
parent 106b9163c2
commit 6d472abb18
6 changed files with 24 additions and 9 deletions

View File

@@ -751,7 +751,7 @@ const Events = Module("events", {
return;
}
if (elem instanceof HTMLTextAreaElement || (elem && elem.contentEditable == "true")) {
if (elem instanceof HTMLTextAreaElement || (elem && util.computedStyle(elem).MozUserModify == "read-write")) {
if (options["insertmode"])
modes.set(modes.INSERT);
else if (elem.selectionEnd - elem.selectionStart > 0)