Bug 1420708 - Allow the Data Manager Window to be closed with the standard command key (Ctrl-W). r=IanN a=IanN
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Sat, 09 Dec 2017 23:31:42 +0100
changeset 28112 61841237bba88e1cce299e757a1280b46c4beb56
parent 28111 bbc00efc7636d3662ac387a014e1c857c5594461
child 28113 a0d51461e267a36b9808d22ba322d6c58a7f05c5
push id2004
push userfrgrahl@gmx.net
push dateSat, 09 Dec 2017 22:33:02 +0000
treeherdercomm-esr52@61841237bba8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, IanN
bugs1420708
Bug 1420708 - Allow the Data Manager Window to be closed with the standard command key (Ctrl-W). r=IanN a=IanN
suite/common/dataman/dataman.xul
--- a/suite/common/dataman/dataman.xul
+++ b/suite/common/dataman/dataman.xul
@@ -5,16 +5,18 @@
 
 <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
 <?xml-stylesheet href="chrome://communicator/content/dataman/dataman.css" type="text/css"?>
 <?xml-stylesheet href="chrome://communicator/skin/dataman/dataman.css" type="text/css"?>
 
 <!DOCTYPE page [
 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
 %brandDTD;
+<!ENTITY % platformCommunicatorDTD SYSTEM "chrome://communicator-platform/locale/platformCommunicatorOverlay.dtd">
+%platformCommunicatorDTD;
 <!ENTITY % datamanDTD SYSTEM "chrome://communicator/locale/dataman/dataman.dtd">
 %datamanDTD;
 ]>
 
 <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
       xmlns:xhtml="http://www.w3.org/1999/xhtml"
       id="dataman-page" title="&dataman.windowTitle;"
       windowtype="data:manager"
@@ -36,19 +38,25 @@
 
   <commandset id="datamanCommands">
     <command id="cmd_selectAll"
              oncommand="gTabs.selectAll();"/>
     <command id="cmd_search_domain"
              oncommand="gDomains.focusSearch();"/>
     <command id="cmd_search_data"
              oncommand="gTabs.focusSearch();"/>
+    <command id="cmd_close"
+             oncommand="window.close();"/>
   </commandset>
 
   <keyset id="datamanKeys">
+    <key id="key_close"
+         command="cmd_close"
+         key="&closeCmd.key;"
+         modifiers="accel"/>
     <key id="key_selectAll"
          command="cmd_selectAll"
          key="&selectAll.key;"
          modifiers="accel"/>
     <key id="key_search_domain"
          command="cmd_search_domain"
          key="&domain.search.key;"
          modifiers="accel"/>