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:
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user