зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
89fc55cdc6
Коммит
749856758e
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче