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

<martijn.martijn@gmail.com>, r=mconnor
This commit is contained in:
bzbarsky%mit.edu 2005-09-16 20:08:23 +00:00
Родитель f5bfaeab79
Коммит b8cfbfc86a
4 изменённых файлов: 23 добавлений и 2 удалений

Просмотреть файл

@ -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="&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;"

Просмотреть файл

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