зеркало из https://github.com/mozilla/gecko-dev.git
Sync xpfe and toolkit's textbox.xml p=gautheri@noos.fr r=mconnor sr=me a=asa
This commit is contained in:
Родитель
b8ff8c18c7
Коммит
57c8b76648
|
@ -174,7 +174,7 @@
|
|||
<content context="_child">
|
||||
<children/>
|
||||
<xul:menupopup anonid="input-box-contextmenu"
|
||||
onpopupshowing="if (document.commandDispatcher.focusedElement != this.parentNode.firstChild)
|
||||
onpopupshowing="if (document.commandDispatcher.focusedElement != this.parentNode.firstChild)
|
||||
this.parentNode.firstChild.focus();
|
||||
this.parentNode.doPopupItemEnabling(this);"
|
||||
oncommand="this.parentNode.doCommand(event.originalTarget.getAttribute('cmd'));event.preventBubble();">
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
<!ENTITY pasteCmd.accesskey "p">
|
||||
<!ENTITY undoCmd.label "Undo">
|
||||
<!ENTITY undoCmd.accesskey "u">
|
||||
<!ENTITY redoCmd.label "Redo">
|
||||
<!ENTITY redoCmd.accesskey "r">
|
||||
<!ENTITY selectAllCmd.label "Select All">
|
||||
<!ENTITY selectAllCmd.accesskey "a">
|
||||
<!ENTITY deleteCmd.label "Delete">
|
||||
|
|
|
@ -173,12 +173,12 @@
|
|||
<binding id="input-box">
|
||||
<content context="_child">
|
||||
<children/>
|
||||
<xul:menupopup onpopupshowing="if (document.commandDispatcher.focusedElement != this.parentNode.firstChild)
|
||||
<xul:menupopup anonid="input-box-contextmenu"
|
||||
onpopupshowing="if (document.commandDispatcher.focusedElement != this.parentNode.firstChild)
|
||||
this.parentNode.firstChild.focus();
|
||||
this.parentNode.doPopupItemEnabling(this);"
|
||||
oncommand="this.parentNode.doCommand(event.originalTarget.getAttribute('cmd'));event.preventBubble();">
|
||||
<xul:menuitem label="&undoCmd.label;" accesskey="&undoCmd.accesskey;" cmd="cmd_undo"/>
|
||||
<xul:menuitem label="&redoCmd.label;" accesskey="&redoCmd.accesskey;" cmd="cmd_redo"/>
|
||||
<xul:menuseparator/>
|
||||
<xul:menuitem label="&cutCmd.label;" accesskey="&cutCmd.accesskey;" cmd="cmd_cut"/>
|
||||
<xul:menuitem label="©Cmd.label;" accesskey="©Cmd.accesskey;" cmd="cmd_copy"/>
|
||||
|
@ -195,7 +195,7 @@
|
|||
<body>
|
||||
<![CDATA[
|
||||
var children = popupNode.childNodes;
|
||||
for (var i = 0; i < children.length; i++) {
|
||||
for (var i = 0; i < children.length; i++) {
|
||||
var command = children[i].getAttribute("cmd");
|
||||
if (command) {
|
||||
var controller = document.commandDispatcher.getControllerForCommand(command);
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
<!ENTITY pasteCmd.accesskey "p">
|
||||
<!ENTITY undoCmd.label "Undo">
|
||||
<!ENTITY undoCmd.accesskey "u">
|
||||
<!ENTITY redoCmd.label "Redo">
|
||||
<!ENTITY redoCmd.accesskey "r">
|
||||
<!ENTITY selectAllCmd.label "Select All">
|
||||
<!ENTITY selectAllCmd.accesskey "a">
|
||||
<!ENTITY deleteCmd.label "Delete">
|
||||
|
|
Загрузка…
Ссылка в новой задаче