зеркало из https://github.com/mozilla/pjs.git
adding ctrl-; keyboard shortcut to focus search bar
This commit is contained in:
Родитель
a8064dcd93
Коммит
e029f50772
|
@ -3309,3 +3309,12 @@ function updateHomeTooltip()
|
|||
homeButton.setAttribute("tooltiptext", homePage);
|
||||
}
|
||||
}
|
||||
|
||||
function focusSearchBar()
|
||||
{
|
||||
var searchBar = document.getElementById("search-bar");
|
||||
if (searchBar) {
|
||||
searchBar.select();
|
||||
searchBar.focus();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -180,6 +180,7 @@ Contributor(s):
|
|||
<key id="key_newNavigatorTab" key="&tabCmd.commandkey;" modifiers="accel" command="cmd_newNavigatorTab"/>
|
||||
<key id="focusURLBar" key="&openCmd.commandkey;" command="Browser:OpenLocation"
|
||||
modifiers="accel"/>
|
||||
<key id="focusSearchBar" key="&searchFocus.commandkey;" oncommand="focusSearchBar();" modifiers="accel"/>
|
||||
<key id="openFileKb" key="&openFileCmd.commandkey;" command="Browser:OpenFile" modifiers="accel"/>
|
||||
<key id="key_savePage" key="&savePageCmd.commandkey;" command="Browser:SavePage" modifiers="accel"/>
|
||||
<key id="printKb" key="&printCmd.commandkey;" command="Browser:Print" modifiers="accel"/>
|
||||
|
|
|
@ -165,6 +165,7 @@
|
|||
<!ENTITY aboutCmd.accesskey "A">
|
||||
|
||||
<!ENTITY openCmd.commandkey "l">
|
||||
<!ENTITY searchFocus.commandkey ";">
|
||||
|
||||
<!ENTITY openLinkCmd.label "Open Link in New Window">
|
||||
<!ENTITY openLinkCmd.accesskey "W">
|
||||
|
|
Загрузка…
Ссылка в новой задаче