Bug 329394 - XUL textbox in XHTML page: focusing gives document.commandDispatcher has no properties. patch from Shawn Wilsher (sdwilsh) <comrade693@gmail.com>, rs=neil/me.

This commit is contained in:
mozilla.mano%sent.com 2006-07-26 21:54:05 +00:00
Родитель 89fc55cdc6
Коммит 749856758e
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -172,7 +172,7 @@
<handler event="focus" phase="capturing">
<![CDATA[
if (!this.hasAttribute("focused")) {
if (document.commandDispatcher.focusedElement != this.inputField)
if (event.originalTarget != this.inputField)
this.inputField.focus();
else if (this.mIgnoreFocus)
this.mIgnoreFocus = false;

Просмотреть файл

@ -128,7 +128,7 @@
<handler event="focus" phase="capturing">
<![CDATA[
if (!this.hasAttribute("focused")) {
if (document.commandDispatcher.focusedElement != this.inputField)
if (event.originalTarget != this.inputField)
this.inputField.focus();
else if (this.mIgnoreFocus)
this.mIgnoreFocus = false;