Bug 473665 - Port |Bug 404414 - Add keyboard shortcut to open Error Console| to SeaMonkey. r+sr=Neil.
authorJens Hatlak <jh@junetz.de>
Sun, 18 Jan 2009 22:10:56 +0100
changeset 1672 e9abf63937465c81104da4c3f1d301f141acd70e
parent 1671 18c3f3c596c746dd906639a61e27559b7b9bb776
child 1673 9b2b51394a182142d39317ea0dc16f6752892ab5
push idunknown
push userunknown
push dateunknown
bugs473665, 404414
Bug 473665 - Port |Bug 404414 - Add keyboard shortcut to open Error Console| to SeaMonkey. r+sr=Neil.
suite/common/tasksOverlay.xul
suite/locales/en-US/chrome/common/tasksOverlay.dtd
--- a/suite/common/tasksOverlay.xul
+++ b/suite/common/tasksOverlay.xul
@@ -10,20 +10,22 @@
       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
 <script type="application/x-javascript" src="chrome://communicator/content/tasksOverlay.js"/>
 
 
 
 <keyset id="tasksKeys">
   <key id="key_navigator"    key="&navigatorCmd.commandkey;"   command="Tasks:Navigator" modifiers="accel"/>
-
+  <key id="key_errorConsole" key="&errorConsoleCmd.commandkey;"
+       command="Tasks:ErrorConsole" modifiers="accel,shift"/>
 </keyset>
 <commandset id="tasksCommands">
   <command id="Tasks:Navigator" oncommand="toNavigator();"/>
+  <command id="Tasks:ErrorConsole" oncommand="toJavaScriptConsole();"/>
 </commandset>
 
 
       <!-- Tasks Menu -->
       <menu id="tasksMenu" label="&tasksMenu.label;" accesskey="&tasksMenu.accesskey;">
         <menupopup id="taskPopup">
           <menu id="menu_passwordManager"
                 label="&passwordManagerCmd.label;"
@@ -38,17 +40,19 @@
             </menupopup>
           </menu>
           <menuitem id="downloadmgr" label="&downloadManagerCmd.label;" accesskey="&downloadManagerCmd.accesskey;" oncommand="toDownloadManager();"/>
           <menuitem id="addonsmgr" accesskey="&addonsManagerCmd.accesskey;"
                     label="&addonsManagerCmd.label;" oncommand="toEM();"/>
           <menuseparator/>
           <menu label="&webDevelopment.label;" accesskey="&webDevelopment.accesskey;">
             <menupopup id="toolsPopup" onpopupshowing="javaItemEnabling();">
-              <menuitem label="&errorConsoleCmd.label;" accesskey="&errorConsoleCmd.accesskey;" oncommand="toJavaScriptConsole();"/>
+              <menuitem id="javascriptConsole" label="&errorConsoleCmd.label;"
+                        accesskey="&errorConsoleCmd.accesskey;"
+                        key="key_errorConsole" command="Tasks:ErrorConsole"/>
               <menuitem id="java" label="&javaConsoleCmd.label;" accesskey="&javaConsoleCmd.accesskey;" oncommand="toJavaConsole()"/>
             </menupopup>
           </menu>
           <menuseparator id="sep_switchprofile"/>
           <menuitem id="cmd_switchprofile" label="&switchProfileCmd.label;" accesskey="&switchProfileCmd.accesskey;" oncommand="toProfileManager();"/>
         </menupopup>
       </menu>
 
--- a/suite/locales/en-US/chrome/common/tasksOverlay.dtd
+++ b/suite/locales/en-US/chrome/common/tasksOverlay.dtd
@@ -7,16 +7,17 @@
 <!ENTITY editorCmd.accesskey				"c">
 <!ENTITY editorCmd.commandkey				"4">
 
 <!ENTITY javaConsoleCmd.label					"Java Console">
 <!ENTITY javaConsoleCmd.accesskey				"j">
 
 <!ENTITY errorConsoleCmd.label                                  "Error Console">
 <!ENTITY errorConsoleCmd.accesskey				"C">
+<!ENTITY errorConsoleCmd.commandkey				"j">
 
 <!ENTITY taskNavigator.tooltip  "Browser">
 <!ENTITY taskComposer.tooltip  "Composer">
 
 <!ENTITY webDevelopment.label "Web Development">
 <!ENTITY webDevelopment.accesskey "W">
 
 <!ENTITY windowMenu.label "Window">