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
parent 649db7fc36
commit dcb5434517
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;