In about:config, make accel+f focus the filter box instead of invoking the find bar; r=neil

This commit is contained in:
Steffen Wilberg 2008-10-11 03:10:48 +02:00
parent 6499cb8fdb
commit afdcf5bda0
3 changed files with 4 additions and 1 deletions

View File

@ -369,6 +369,7 @@ function ShowPrefs()
configTree.controllers.insertControllerAt(0, configController);
document.getElementById("configDeck").setAttribute("selectedIndex", 1);
document.getElementById("configTreeKeyset").removeAttribute("disabled");
if (!document.getElementById("showWarningNextTime").checked)
gPrefBranch.setBoolPref("general.warnOnAboutConfig", false);

View File

@ -76,9 +76,10 @@
<menuitem id="resetSelected" label="&reset.label;" accesskey="&reset.accesskey;" oncommand="ResetSelected();"/>
</popup>
<keyset>
<keyset id="configTreeKeyset" disabled="true">
<key keycode="VK_ENTER" oncommand="ModifySelected();"/>
<key keycode="VK_RETURN" oncommand="ModifySelected();"/>
<key key="&focusFilter.key;" modifiers="accel" oncommand="document.getElementById('textbox').focus();"/>
</keyset>
<deck id="configDeck" flex="1">
<vbox id="warningScreen" flex="1" align="center">

View File

@ -45,6 +45,7 @@
<!ENTITY filterPrefs.label "Filter:">
<!ENTITY filterPrefs.accesskey "F">
<!ENTITY focusFilter.key "f">
<!-- Columns -->
<!ENTITY prefColumn.label "Preference Name">