Add context menu "copy" option to help. Bug 298950, patch by Martijn Wargers

<martijn.martijn@gmail.com>, r=mconnor


git-svn-id: svn://10.0.0.236/trunk@180429 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2005-09-16 20:08:23 +00:00
parent 0bb0559eaf
commit c6da91cb5f
4 changed files with 23 additions and 2 deletions

View File

@ -103,7 +103,9 @@
<command id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
<command id="cmd_find" oncommand="onFindCmd();"/>
<command id="cmd_findAgain" oncommand="onFindAgainCmd();"/>
<command id="cmd_findPrevious" oncommand="onFindPreviousCmd();"/>
<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"/>

View File

@ -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="&copyCmd.label;"
accesskey="&copyCmd.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;"

View File

@ -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">

View File

@ -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;
}