Skip to content
Snippets Groups Projects
Commit 8d7519a0 authored by Eric Oulashin's avatar Eric Oulashin
Browse files

DDMsgReader: Removed extraneous KEY_PAGEUP and KEY_PAGEDN definitions and...

DDMsgReader: Removed extraneous KEY_PAGEUP and KEY_PAGEDN definitions and assignments no longer needed (also, they were the result of search & replace and should have been removed in the last commit)
parent b2b0525d
No related branches found
No related tags found
1 merge request!493DDMsgReader: Inactivity disconnection more consistent with Synchronet behavior. DDLightbarMenu: Use console.getkey() instead of getKeyWithESCChars(), as getKeyWithESCChars() is no longer needed.
Pipeline #8041 failed
...@@ -372,31 +372,7 @@ var CTRL_Z = "\x1a"; ...@@ -372,31 +372,7 @@ var CTRL_Z = "\x1a";
//var KEY_ESC = "\x1b"; //var KEY_ESC = "\x1b";
var KEY_ESC = ascii(27); var KEY_ESC = ascii(27);
var KEY_ENTER = CTRL_M; var KEY_ENTER = CTRL_M;
// PageUp & PageDown keys - Synchronet 3.17 as of about December 18, 2017
// use CTRL-P and CTRL-N for PageUp and PageDown, respectively. sbbsdefs.js
// defines them as KEY_PAGEUP and KEY_PAGEDN; I've used slightly different names
// in this script so that this script will work with Synchronet systems before
// and after the update containing those key definitions.
var KEY_PAGEUP = CTRL_P;
var KEY_PAGEDN = CTRL_N;
// Ensure KEY_PAGEUP and KEY_PAGEDN are set to what's defined in sbbs.js
// for KEY_PAGEUP and KEY_PAGEDN in case they change
if (typeof(KEY_PAGEUP) === "string")
KEY_PAGEUP = KEY_PAGEUP;
if (typeof(KEY_PAGEDN) === "string")
KEY_PAGEDN = KEY_PAGEDN;
// These are defined in sbbsdefs.js:
//var KEY_UP ='\x1e'; // ctrl-^ (up arrow)
//var KEY_DOWN ='\x0a'; // ctrl-j (dn arrow)
//var KEY_RIGHT ='\x06'; // ctrl-f (rt arrow)
//var KEY_LEFT ='\x1d'; // ctrl-] (lf arrow)
//var KEY_HOME ='\x02'; // ctrl-b (home)
//var KEY_END ='\x05'; // ctrl-e (end)
//var KEY_DEL ='\x7f'; // (del)
// These were added to sbbsdef.js around December 17, 2017:
//var KEY_PAGEUP ='\x10'; /* ctrl-p (Page Up) */
//var KEY_PAGEDN ='\x0e'; /* ctrl-n (Page Down) */
   
// Characters for display // Characters for display
// Box-drawing/border characters: Single-line // Box-drawing/border characters: Single-line
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment