From 4bdf80f9c85f109fb21495bc2bee4a68ea755187 Mon Sep 17 00:00:00 2001 From: Eric Oulashin <eric.oulashin@gmail.com> Date: Fri, 19 Aug 2022 18:08:07 -0700 Subject: [PATCH] Set the control key pass-thru so that some hotkeys (such as Ctrl-P for PageUp) only get caught by the scripts. --- xtrn/DDAreaChoosers/DDFileAreaChooser.js | 11 +++++++++-- xtrn/DDAreaChoosers/DDMsgAreaChooser.js | 11 +++++++++-- xtrn/DDAreaChoosers/readme.txt | 4 ++-- xtrn/DDAreaChoosers/revision_history.txt | 5 +++++ 4 files changed, 25 insertions(+), 6 deletions(-) diff --git a/xtrn/DDAreaChoosers/DDFileAreaChooser.js b/xtrn/DDAreaChoosers/DDFileAreaChooser.js index b26ac42e1f..bef4b038ef 100644 --- a/xtrn/DDAreaChoosers/DDFileAreaChooser.js +++ b/xtrn/DDAreaChoosers/DDFileAreaChooser.js @@ -39,6 +39,9 @@ * 2022-07-23 Eric Oulashin Version 1.29 * Re-arranged the help text for lightbar mode to be more consistent with my message reader * (and message area chooser). + * 2022-08-19 Eric Oulashin Version 1.30 + * Set the control key pass-thru so that some hotkeys (such as Ctrl-P for PageUp) only + * get caught by this script. */ // TODO: Failing silently when 1st argument is true @@ -79,8 +82,8 @@ if (system.version_num < 31400) } // Version & date variables -var DD_FILE_AREA_CHOOSER_VERSION = "1.29"; -var DD_FILE_AREA_CHOOSER_VER_DATE = "2022-07-23"; +var DD_FILE_AREA_CHOOSER_VERSION = "1.30"; +var DD_FILE_AREA_CHOOSER_VER_DATE = "2022-08-19"; // Keyboard input key codes var CTRL_H = "\x08"; @@ -140,6 +143,10 @@ else if (typeof(argv[1]) == "string") // it to let the user choose a message area. if (executeThisScript) { + // When exiting this script, make sure to set the ctrl key pasthru back to what it was originally + js.on_exit("console.ctrlkey_passthru = " + console.ctrlkey_passthru); + console.ctrlkey_passthru = "+ACGKLOPQRTUVWXYZ_"; // So that control key combinations only get caught by this script + var fileAreaChooser = new DDFileAreaChooser(); fileAreaChooser.SelectFileArea(chooseFileLib); } diff --git a/xtrn/DDAreaChoosers/DDMsgAreaChooser.js b/xtrn/DDAreaChoosers/DDMsgAreaChooser.js index f79ad7e391..8abc729be4 100644 --- a/xtrn/DDAreaChoosers/DDMsgAreaChooser.js +++ b/xtrn/DDAreaChoosers/DDMsgAreaChooser.js @@ -37,6 +37,9 @@ * when only choosing a sub-board within the user's current message group. * 2022-07-23 Eric Oulashin Version 1.29 * Re-arranged the help text for lightbar mode to be more consistent with my message reader. + * 2022-08-19 Eric Oulashin Version 1.30 + * Set the control key pass-thru so that some hotkeys (such as Ctrl-P for PageUp) only + * get caught by this script. */ // TODO: In the area list, the 10,000ths digit (for # posts) is in a different color) @@ -80,8 +83,8 @@ if (system.version_num < 31400) } // Version & date variables -var DD_MSG_AREA_CHOOSER_VERSION = "1.29"; -var DD_MSG_AREA_CHOOSER_VER_DATE = "2022-07-23"; +var DD_MSG_AREA_CHOOSER_VERSION = "1.30"; +var DD_MSG_AREA_CHOOSER_VER_DATE = "2022-08-19"; // Keyboard input key codes var CTRL_H = "\x08"; @@ -150,6 +153,10 @@ else if (typeof(argv[1]) == "string") // it to let the user choose a message area. if (executeThisScript) { + // When exiting this script, make sure to set the ctrl key pasthru back to what it was originally + js.on_exit("console.ctrlkey_passthru = " + console.ctrlkey_passthru); + console.ctrlkey_passthru = "+ACGKLOPQRTUVWXYZ_"; // So that control key combinations only get caught by this script + var msgAreaChooser = new DDMsgAreaChooser(); // If we are to let the user choose a sub-board within // their current group (and not choose a message group diff --git a/xtrn/DDAreaChoosers/readme.txt b/xtrn/DDAreaChoosers/readme.txt index ef78740185..f9c59346c5 100644 --- a/xtrn/DDAreaChoosers/readme.txt +++ b/xtrn/DDAreaChoosers/readme.txt @@ -1,6 +1,6 @@ Digital Distortion Area Choosers - Version 1.26/1.28 - Release date: 2022-07-08 + Version 1.30 + Release date: 2022-08-19 by diff --git a/xtrn/DDAreaChoosers/revision_history.txt b/xtrn/DDAreaChoosers/revision_history.txt index 844fb2bee1..ed97678feb 100644 --- a/xtrn/DDAreaChoosers/revision_history.txt +++ b/xtrn/DDAreaChoosers/revision_history.txt @@ -5,6 +5,11 @@ Revision History (change log) ============================= Version Date Description ------- ---- ----------- +1.30 2022-08-19 Made use of the control key passthru setting so that + certain hotkeys (such as Ctrl-P, for Pageup) are only + caught by the scripts and not passed thru to the BBS. +1.29 2022-07-23 Re-arranged the help text to be more consistent with + each other. 1.28 2022-07-06 File area chooser: Lightbar mode fix for not actually moving to the user's selected directory when directly choosing a directory in their library -- GitLab