Bug 308114 - [Mac] No keyboard shortcut for 'Highlight All'. r=mconnor.

This commit is contained in:
mozilla.mano%sent.com 2005-09-17 23:07:40 +00:00
parent 02cce08cee
commit f44148c9db
3 changed files with 14 additions and 2 deletions

View File

@ -13,10 +13,17 @@
command="cmd_findAgain" disabled="true" accesskey="&findNext.accesskey;"/>
<toolbarbutton id="find-previous" label="&findPrevious.label;" tooltiptext="&findPrevious.tooltip;"
command="cmd_findPrevious" disabled="true" accesskey="&findPrevious.accesskey;"/>
<toolbarbutton id="highlight" label="&highlight.label;" tooltiptext="&highlight.tooltip;"
<toolbarbutton id="highlight"
label="&highlight.label;"
#ifdef XP_MACOSX
tooltiptext="&highlight.macTooltip;"
#else
tooltiptext="&highlight.tooltip;"
#endif
oncommand="toggleHighlight(!this.checked);
if (gFindMode != FIND_NORMAL) setFindCloseTimeout();"
type="checkbox" disabled="true" accesskey="&highlight.accesskey;"/>
type="checkbox" disabled="true"
accesskey="&highlight.accesskey;"/>
<checkbox id="find-case-sensitive" oncommand="toggleCaseSensitivity(this.checked);"
label="&caseSensitiveCheckbox.label;" accesskey="&caseSensitiveCheckbox.accesskey;"/>
<image id="find-status-icon"/>

View File

@ -519,7 +519,11 @@ function onFindBarKeyPress(evt)
if (!findString.value)
return;
#ifdef XP_MACOSX
if (evt.metaKey) {
#else
if (evt.ctrlKey) {
#endif
document.getElementById("highlight").click();
return;
}

View File

@ -13,6 +13,7 @@
<!ENTITY highlight.label "Highlight all">
<!ENTITY highlight.accesskey "a">
<!ENTITY highlight.tooltip "Highlight all occurrences of the phrase (Ctrl+Enter)">
<!ENTITY highlight.macTooltip "Highlight all occurrences of the phrase (Cmd+Return)">
<!ENTITY caseSensitiveCheckbox.label "Match case">
<!ENTITY caseSensitiveCheckbox.accesskey "c">