Bug 303194: Pressing delete key in extension manager should uninstall extension. p=Simon Bünzli <zeniko@gmail.com>, r=dtownsend, a=schrep.
authordtownsend@oxymoronical.com
Thu, 13 Dec 2007 03:00:53 -0800
changeset 9003 ca614419d1d4da6933ef99c763627948f8043998
parent 9002 f627f96a3217577f1bae7808426bc3176fb5466e
child 9004 980890a3d50d40dfe1baf02a63ffc8c3c700781a
push idunknown
push userunknown
push dateunknown
reviewersdtownsend, schrep
bugs303194
milestone1.9b3pre
Bug 303194: Pressing delete key in extension manager should uninstall extension. p=Simon Bünzli <zeniko@gmail.com>, r=dtownsend, a=schrep.
toolkit/mozapps/extensions/content/extensions.xul
--- a/toolkit/mozapps/extensions/content/extensions.xul
+++ b/toolkit/mozapps/extensions/content/extensions.xul
@@ -69,22 +69,26 @@
     <stringbundle id="brandStrings" src="chrome://branding/locale/brand.properties"/>
     <stringbundle id="extensionsStrings" src="chrome://mozapps/locale/extensions/extensions.properties"/>
     <stringbundle id="xpinstallStrings" src="chrome://global/locale/xpinstall/xpinstall.properties"/>
   </stringbundleset>
 
   <keyset id="extensionsKeys">
     <key id="key_close"   key="&cmd.close.commandKey;"    modifiers="accel" command="cmd_close"/>
     <key id="key_close2"  keycode="VK_ESCAPE" command="cmd_close"/>
-    <key id="key_about"   key="&cmd.info.commandKey;"     modifiers="accel" command="cmd_about" 
+    <key id="key_about"   key="&cmd.info.commandKey;"     modifiers="accel"
          oncommand="gExtensionsViewController.doCommand('cmd_about');"/>
-    <key id="key_options" key="&cmd.options.commandKey;"  modifiers="accel" command="cmd_options"
+    <key id="key_options" key="&cmd.options.commandKey;"  modifiers="accel"
          oncommand="gExtensionsViewController.doCommand('cmd_options');"/>
-    <key id="key_uninstall" keycode="VK_DELETE"                             command="cmd_uninstall"
+    <key id="key_uninstall" keycode="VK_DELETE"
          oncommand="gExtensionsViewController.doCommand('cmd_uninstall');"/>
+#ifdef XP_MACOSX
+    <key id="key_uninstall_mac" keycode="VK_BACK"
+         oncommand="gExtensionsViewController.doCommand('cmd_uninstall');"/>
+#endif
   </keyset>
 
   <commandset id="extensionsCommands"
               events="richlistbox-select"
               commandupdater="true"
               oncommandupdate="gExtensionsViewController.onCommandUpdate();"
               oncommand="gExtensionsViewController.doCommand(event.target.id);">
     <command id="cmd_options"/>