From d6bc72c5aead4a8a804bb083d91f3252ed45bcf8 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sun, 14 Jan 2018 10:13:23 +0000 Subject: [PATCH] Disable sbbs handling of the following control-keys and restore the control key settings upon terminatation (even an ungraceful one): Ctrl-K/P/T/U/Z --- exec/avatar_chooser.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/exec/avatar_chooser.js b/exec/avatar_chooser.js index 0ef1dd2e28..a3fec72805 100644 --- a/exec/avatar_chooser.js +++ b/exec/avatar_chooser.js @@ -747,6 +747,12 @@ function init() { console_attr = console.attributes; bbs.sys_status|=SS_MOFF; console.clear(LIGHTGRAY); + js.on_exit("console.ctrlkey_passthru = " + console.ctrlkey_passthru); + console.ctrlkey_passthru|=(1<<11); // Disable Ctrl-K handling in sbbs + console.ctrlkey_passthru|=(1<<16); // Disable Ctrl-P handling in sbbs + console.ctrlkey_passthru|=(1<<20); // Disable Ctrl-T handling in sbbs + console.ctrlkey_passthru|=(1<<21); // Disable Ctrl-U handling in sbbs + console.ctrlkey_passthru|=(1<<26); // Disable Ctrl-Z handling in sbbs } function main() { -- GitLab