diff --git a/xtrn/DDMsgReader/DDMsgReader.js b/xtrn/DDMsgReader/DDMsgReader.js index 182de5e43cc2805d052bedcf9de0ff4d07ec7737..9a5e2f013305cae5082084a5d856bf06e0b04138 100644 --- a/xtrn/DDMsgReader/DDMsgReader.js +++ b/xtrn/DDMsgReader/DDMsgReader.js @@ -77,6 +77,16 @@ * 2021-01-31 Michael Long Version 1.40 * Fixed left/right colors not being customizable on message * list lightbar + * 2021-02-12 Eric Oulashin Version 1.41 + * Bug fix: When changing to another area with the lightbar + * interface, if the user's current sub-board is a high-numbered + * sub-board and they select a message group with fewer + * sub-boards, the highlighted sub-board in that group would + * be set to that high number and would be incorrect. + * That has been fixed. Copied a fix from my stand-alone + * message area chooser. In that scenario, the current + * highlighted sub-board in the other group will be + * the first one. */ @@ -188,8 +198,8 @@ if (system.version_num < 31500) } // Reader version information -var READER_VERSION = "1.40"; -var READER_DATE = "2021-01-31"; +var READER_VERSION = "1.41"; +var READER_DATE = "2021-02-12"; // Keyboard key codes for displaying on the screen var UP_ARROW = ascii(24); @@ -3952,9 +3962,17 @@ function DigDistMsgReader_CreateLightbarSubBoardMenu(pGrpIdx) }; // Set the currently selected item to the current group - subBoardMenu.selectedItemIdx = msg_area.sub[this.subBoardCode].index; - if (subBoardMenu.selectedItemIdx >= subBoardMenu.topItemIdx+subBoardMenu.GetNumItemsPerPage()) - subBoardMenu.topItemIdx = subBoardMenu.selectedItemIdx - subBoardMenu.GetNumItemsPerPage() + 1; + if (msg_area.sub[this.subBoardCode].grp_index == pGrpIdx) + { + subBoardMenu.selectedItemIdx = msg_area.sub[this.subBoardCode].index; + if (subBoardMenu.selectedItemIdx >= subBoardMenu.topItemIdx+subBoardMenu.GetNumItemsPerPage()) + subBoardMenu.topItemIdx = subBoardMenu.selectedItemIdx - subBoardMenu.GetNumItemsPerPage() + 1; + } + else + { + subBoardMenu.selectedItemIdx = 0; + subBoardMenu.topItemIdx = 0; + } return subBoardMenu; } @@ -5481,33 +5499,19 @@ function DigDistMsgReader_ScrollReaderDetermineClickCoordAction(pScrollRetObj, p else if (pEnhReadHelpLineClickCoords[coordIdx].actionStr.indexOf("DEL") == 0) retObj.actionStr = this.enhReaderKeys.deleteMessage; else if (pEnhReadHelpLineClickCoords[coordIdx].actionStr.indexOf("E)") == 0) - { retObj.actionStr = this.enhReaderKeys.editMsg; - } else if (pEnhReadHelpLineClickCoords[coordIdx].actionStr.indexOf("F") == 0) - { retObj.actionStr = this.enhReaderKeys.firstMsg; - } else if (pEnhReadHelpLineClickCoords[coordIdx].actionStr.indexOf("L") == 0) - { retObj.actionStr = this.enhReaderKeys.lastMsg; - } else if (pEnhReadHelpLineClickCoords[coordIdx].actionStr.indexOf("R") == 0) - { retObj.actionStr = this.enhReaderKeys.reply; - } else if (pEnhReadHelpLineClickCoords[coordIdx].actionStr.indexOf("C") == 0) - { retObj.actionStr = this.enhReaderKeys.chgMsgArea; - } else if (pEnhReadHelpLineClickCoords[coordIdx].actionStr.indexOf("Q") == 0) - { retObj.actionStr = this.enhReaderKeys.quit; - } else if (pEnhReadHelpLineClickCoords[coordIdx].actionStr.indexOf("?") == 0) - { retObj.actionStr = this.enhReaderKeys.showHelp; - } break; } } diff --git a/xtrn/DDMsgReader/readme.txt b/xtrn/DDMsgReader/readme.txt index bb1a3b80f7f0ffd015acab3d89d4ed0ac3d1dc71..1d9fecc41bfa8944d2144b3d6baecfed288dc03a 100644 --- a/xtrn/DDMsgReader/readme.txt +++ b/xtrn/DDMsgReader/readme.txt @@ -1,6 +1,6 @@ Digital Distortion Message Reader - Version 1.40 - Release date: 2021-12-31 + Version 1.41 + Release date: 2021-02-12 by diff --git a/xtrn/DDMsgReader/revision_history.txt b/xtrn/DDMsgReader/revision_history.txt index edf89b56a5accc85e9637872b574ba6fec06446b..1376ef0aa3738b6e2f33f2bfeecba87746b9e87a 100644 --- a/xtrn/DDMsgReader/revision_history.txt +++ b/xtrn/DDMsgReader/revision_history.txt @@ -5,6 +5,15 @@ Revision History (change log) ============================= Version Date Description ------- ---- ----------- +1.41 2021-02-12 Bug fix: When changing to another area with the lightbar + interface, if the user's current sub-board is a + high-numbered sub-board and they select a message group + with fewer sub-boards, the highlighted sub-board in that + group would be set to that high number and would be + incorrect. That has been fixed. Copied a fix from my + stand-alone message area chooser. In that scenario, the + current highlighted sub-board in the other group will be + the first one. 1.40 2021-01-31 (Michael Long) Fixed left/right colors not being customizable on message list lightbar 1.39 2020-12-01 When forwarding a message, added the ability to optinally