Bug 1559224 - Set the correct delete access key when a folder is selected. r=jorgk DONTBUILD
authorRichard Marti <richard.marti@gmail.com>
Fri, 14 Jun 2019 08:06:03 +0200
changeset 35864 acbf665ac19174b273e9cf4c76a14b6c1e341be8
parent 35863 ae1624177e2cf555a9d1f35bcae4c2e6287545bc
child 35865 3f21675fcb0b3f2898e34b9b35279a3b8e336f7f
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersjorgk
bugs1559224
Bug 1559224 - Set the correct delete access key when a folder is selected. r=jorgk DONTBUILD
mail/base/content/mail3PaneWindowCommands.js
--- a/mail/base/content/mail3PaneWindowCommands.js
+++ b/mail/base/content/mail3PaneWindowCommands.js
@@ -106,21 +106,23 @@ var FolderPaneController = {
 };
 
 function UpdateDeleteLabelsFromFolderCommand(folder, command) {
   if (command != "cmd_delete")
     return;
 
   if (folder.getFlag(Ci.nsMsgFolderFlags.Virtual)) {
     goSetMenuValue(command, "valueFolder");
+    goSetAccessKey(command, "valueFolderAccessKey");
   } else if (folder.server.type == "nntp") {
     goSetMenuValue(command, "valueNewsgroup");
     goSetAccessKey(command, "valueNewsgroupAccessKey");
   } else {
     goSetMenuValue(command, "valueFolder");
+    goSetAccessKey(command, "valueFolderAccessKey");
   }
 }
 
 // DefaultController object (handles commands when one of the trees does not have focus)
 var DefaultController = {
   /* eslint-disable complexity */
   supportsCommand(command) {
     switch (command) {