Port over a regression fix from Mozilla.

This commit is contained in:
blakeross%telocity.com 2002-11-02 00:36:06 +00:00
parent 2e4b21d920
commit 256ef6b0ef

View File

@ -149,7 +149,9 @@
<binding id="input-box">
<content context="_child">
<children/>
<xul:menupopup onpopupshowing="this.parentNode.firstChild.focus(); this.parentNode.doPopupItemEnabling(this);"
<xul:menupopup onpopupshowing="if (document.commandDispatcher.focusedElement != this.parentNode.firstChild)
this.parentNode.firstChild.focus();
this.parentNode.doPopupItemEnabling(this);"
oncommand="this.parentNode.doCommand(event.originalTarget.getAttribute('cmd'));">
<xul:menuitem label="&undoCmd.label;" accesskey="&undoCmd.accesskey;" cmd="cmd_undo"/>
<xul:menuseparator/>