Bug 865788 - Pressing ESC should close the sidebar in Scratchpad; r=rcampbell

This commit is contained in:
Brandon Benvie 2013-04-26 13:26:00 -04:00
parent 3bd13361af
commit d19b6f5933

View File

@ -53,6 +53,7 @@
<command id="sp-cmd-errorConsole" oncommand="Scratchpad.openErrorConsole();" disabled="true"/> <command id="sp-cmd-errorConsole" oncommand="Scratchpad.openErrorConsole();" disabled="true"/>
<command id="sp-cmd-webConsole" oncommand="Scratchpad.openWebConsole();"/> <command id="sp-cmd-webConsole" oncommand="Scratchpad.openWebConsole();"/>
<command id="sp-cmd-documentationLink" oncommand="Scratchpad.openDocumentationPage();"/> <command id="sp-cmd-documentationLink" oncommand="Scratchpad.openDocumentationPage();"/>
<command id="sp-cmd-hideSidebar" oncommand="Scratchpad.sidebar.hide();"/>
</commandset> </commandset>
<keyset id="sourceEditorKeys"/> <keyset id="sourceEditorKeys"/>
@ -102,6 +103,9 @@
key="&errorConsoleCmd.commandkey;" key="&errorConsoleCmd.commandkey;"
command="sp-cmd-errorConsole" command="sp-cmd-errorConsole"
modifiers="accel,shift"/> modifiers="accel,shift"/>
<key id="sp-key-hideSidebar"
keycode="VK_ESCAPE"
command="sp-cmd-hideSidebar"/>
<key id="key_openHelp" <key id="key_openHelp"
keycode="VK_F1" keycode="VK_F1"
command="sp-cmd-documentationLink"/> command="sp-cmd-documentationLink"/>