mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 308114 - [Mac] No keyboard shortcut for 'Highlight All'. r=mconnor.
This commit is contained in:
parent
02cce08cee
commit
f44148c9db
@ -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"/>
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user