1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-16 15:13:32 +01:00

Fix pressing <Space> in content-editable windows. Closes issue #not-in-the-tracker-for-some-reason.

This commit is contained in:
Kris Maglione
2011-02-12 12:15:02 -05:00
parent e7529166df
commit 127ed4cfc2
5 changed files with 17 additions and 11 deletions

View File

@@ -1277,7 +1277,8 @@ var Events = Module("events", {
return;
}
if (elem instanceof HTMLTextAreaElement || (elem && util.computedStyle(elem).MozUserModify == "read-write")
if (elem instanceof HTMLTextAreaElement
|| elem instanceof Element && util.computedStyle(elem).MozUserModify === "read-write"
|| elem == null && win && Editor.getEditor(win)) {
if (modes.main == modes.VISUAL && elem.selectionEnd == elem.selectionStart)