зеркало из https://github.com/mozilla/gecko-dev.git
Add context menu "copy" option to help. Bug 298950, patch by Martijn Wargers
<martijn.martijn@gmail.com>, r=mconnor
This commit is contained in:
Родитель
f5bfaeab79
Коммит
b8cfbfc86a
|
@ -104,6 +104,8 @@
|
|||
<command id="cmd_find" oncommand="onFindCmd();"/>
|
||||
<command id="cmd_findAgain" oncommand="onFindAgainCmd();"/>
|
||||
<command id="cmd_findPrevious" oncommand="onFindPreviousCmd();"/>
|
||||
<command id="cmd_copy" oncommand="goDoCommand('cmd_copy')" disabled="true"/>
|
||||
<command id="cmd_selectAll" oncommand="goDoCommand('cmd_selectAll')"/>
|
||||
</commandset>
|
||||
<keyset id="keys">
|
||||
<key id="goHome" keycode="VK_HOME" command="Help:Home" modifiers="alt"/>
|
||||
|
|
|
@ -44,7 +44,8 @@
|
|||
|
||||
# Help Window's right-click menu
|
||||
<popupset id="contentAreaContextSet">
|
||||
<popup id="contentAreaContextMenu">
|
||||
<popup id="contentAreaContextMenu"
|
||||
onpopupshowing="goUpdateCommand('cmd_copy')">
|
||||
<menuitem id="context-back"
|
||||
label="&backButton.label;"
|
||||
accesskey="&backButton.accesskey;"
|
||||
|
@ -60,6 +61,16 @@
|
|||
accesskey="&reloadCmd.accesskey;"
|
||||
oncommand="reload();"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="context-copy"
|
||||
label="©Cmd.label;"
|
||||
accesskey="©Cmd.accesskey;"
|
||||
command="cmd_copy"
|
||||
disabled="true"/>
|
||||
<menuitem id="context-selectall"
|
||||
label="&selectAllCmd.label;"
|
||||
accesskey="&selectAllCmd.accesskey;"
|
||||
command="cmd_selectAll"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="zoom-in"
|
||||
label="&textZoomEnlargeBtn.label;"
|
||||
accesskey="&textZoomEnlargeBtn.accesskey;"
|
||||
|
|
|
@ -10,6 +10,10 @@
|
|||
<!ENTITY forwardButton.label "Forward">
|
||||
<!ENTITY forwardButton.accesskey "F">
|
||||
<!ENTITY forwardButton.tooltip "Go forward one page">
|
||||
<!ENTITY copyCmd.label "Copy">
|
||||
<!ENTITY copyCmd.accesskey "C">
|
||||
<!ENTITY selectAllCmd.label "Select All">
|
||||
<!ENTITY selectAllCmd.accesskey "A">
|
||||
<!ENTITY goBackCmd.commandkey "[">
|
||||
<!ENTITY goForwardCmd.commandkey "]">
|
||||
<!ENTITY homeButton.label "Home">
|
||||
|
|
|
@ -68,3 +68,7 @@ menubutton:not([disabled="true"]):hover:active {
|
|||
|
||||
#help-print-button { -moz-image-region: rect(0px 96px 24px 72px); }
|
||||
#help-print-button:hover { -moz-image-region: rect(24px 96px 48px 72px); }
|
||||
|
||||
#context-copy[disabled="true"] {
|
||||
visibility: collapse;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче