Skip to content
Snippets Groups Projects
Commit f9c949a5 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'DD_area_choosers_ctrl_key_passthru' into 'master'

Set the control key pass-thru so that some hotkeys (such as Ctrl-P for PageUp) only get caught by the scripts.

See merge request main/sbbs!207
parents 42e7d5fb 4bdf80f9
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!207Set the control key pass-thru so that some hotkeys (such as Ctrl-P for PageUp) only get caught by the scripts.
...@@ -39,6 +39,9 @@ ...@@ -39,6 +39,9 @@
* 2022-07-23 Eric Oulashin Version 1.29 * 2022-07-23 Eric Oulashin Version 1.29
* Re-arranged the help text for lightbar mode to be more consistent with my message reader * Re-arranged the help text for lightbar mode to be more consistent with my message reader
* (and message area chooser). * (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 // TODO: Failing silently when 1st argument is true
...@@ -79,8 +82,8 @@ if (system.version_num < 31400) ...@@ -79,8 +82,8 @@ if (system.version_num < 31400)
} }
// Version & date variables // Version & date variables
var DD_FILE_AREA_CHOOSER_VERSION = "1.29"; var DD_FILE_AREA_CHOOSER_VERSION = "1.30";
var DD_FILE_AREA_CHOOSER_VER_DATE = "2022-07-23"; var DD_FILE_AREA_CHOOSER_VER_DATE = "2022-08-19";
// Keyboard input key codes // Keyboard input key codes
var CTRL_H = "\x08"; var CTRL_H = "\x08";
...@@ -140,6 +143,10 @@ else if (typeof(argv[1]) == "string") ...@@ -140,6 +143,10 @@ else if (typeof(argv[1]) == "string")
// it to let the user choose a message area. // it to let the user choose a message area.
if (executeThisScript) 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(); var fileAreaChooser = new DDFileAreaChooser();
fileAreaChooser.SelectFileArea(chooseFileLib); fileAreaChooser.SelectFileArea(chooseFileLib);
} }
......
...@@ -37,6 +37,9 @@ ...@@ -37,6 +37,9 @@
* when only choosing a sub-board within the user's current message group. * when only choosing a sub-board within the user's current message group.
* 2022-07-23 Eric Oulashin Version 1.29 * 2022-07-23 Eric Oulashin Version 1.29
* Re-arranged the help text for lightbar mode to be more consistent with my message reader. * 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) // 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) ...@@ -80,8 +83,8 @@ if (system.version_num < 31400)
} }
// Version & date variables // Version & date variables
var DD_MSG_AREA_CHOOSER_VERSION = "1.29"; var DD_MSG_AREA_CHOOSER_VERSION = "1.30";
var DD_MSG_AREA_CHOOSER_VER_DATE = "2022-07-23"; var DD_MSG_AREA_CHOOSER_VER_DATE = "2022-08-19";
// Keyboard input key codes // Keyboard input key codes
var CTRL_H = "\x08"; var CTRL_H = "\x08";
...@@ -150,6 +153,10 @@ else if (typeof(argv[1]) == "string") ...@@ -150,6 +153,10 @@ else if (typeof(argv[1]) == "string")
// it to let the user choose a message area. // it to let the user choose a message area.
if (executeThisScript) 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(); var msgAreaChooser = new DDMsgAreaChooser();
// If we are to let the user choose a sub-board within // If we are to let the user choose a sub-board within
// their current group (and not choose a message group // their current group (and not choose a message group
......
Digital Distortion Area Choosers Digital Distortion Area Choosers
Version 1.26/1.28 Version 1.30
Release date: 2022-07-08 Release date: 2022-08-19
by by
......
...@@ -5,6 +5,11 @@ Revision History (change log) ...@@ -5,6 +5,11 @@ Revision History (change log)
============================= =============================
Version Date Description 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 1.28 2022-07-06 File area chooser: Lightbar mode fix for not actually
moving to the user's selected directory when directly moving to the user's selected directory when directly
choosing a directory in their library choosing a directory in their library
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment