my @menu actionKey doesn't work #290

This commit is contained in:
Bryan Ashby 2020-07-05 17:50:48 -06:00
parent dd08cd68e7
commit ef826687b1
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
1 changed files with 6 additions and 4 deletions

View File

@ -60,13 +60,14 @@ exports.getModule = class MessageListModule extends MessageAreaConfTempSwitcher(
this.menuMethods = {
selectMessage : (formData, extraArgs, cb) => {
if(MciViewIds.allViews.msgList === formData.submitId) {
this.initialFocusIndex = formData.value.message;
this.initialFocusIndex = formData.value.messageIndex ||
formData.value.message; // older deprecated arg name
const modOpts = {
extraArgs : {
messageAreaTag : this.getSelectedAreaTag(formData.value.message),
messageAreaTag : this.getSelectedAreaTag(this.initialFocusIndex),
messageList : this.config.messageList,
messageIndex : formData.value.message,
messageIndex : this.initialFocusIndex,
lastMessageNextExit : true,
}
};
@ -107,7 +108,8 @@ exports.getModule = class MessageListModule extends MessageAreaConfTempSwitcher(
if(MciViewIds.allViews.msgList != formData.submitId) {
return cb(null);
}
const messageIndex = _.get(formData, 'value.message');
const messageIndex = formData.value.messageIndex ||
formData.value.message; // older, deprecated arg name
return this.promptDeleteMessageConfirm(messageIndex, cb);
},
deleteMessageYes : (formData, extraArgs, cb) => {