focusing xul textbox gives document.commandDispatcher has no properties, bug 329394, p=sdwilsh, r=neil+mano, a=dveditz

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@224771 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronr%us.ibm.com
2007-04-20 01:29:10 +00:00
parent 9479f06667
commit 91214e4526
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,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();
this.setAttribute('focused','true');
}

View File

@@ -98,7 +98,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();
this.setAttribute('focused','true');
}