From 8d7cd8ac19c1dee4081900b84065c4afac142eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 24 Sep 2017 22:44:59 +0200 Subject: [PATCH] doc comments --- js/term/input.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/js/term/input.js b/js/term/input.js index e31b827..c0649d0 100644 --- a/js/term/input.js +++ b/js/term/input.js @@ -106,14 +106,14 @@ module.exports = function (conn, screen) { for (let i = 0x60; i <= 0x69; i++) KEY_NAMES[i] = `Numpad${i - 0x60}` let cfg = { - np_alt: false, - cu_alt: false, - fn_alt: false, - mt_click: false, - mt_move: false, - no_keys: false, - crlf_mode: false, - all_fn: false + np_alt: false, // Application Numpad Mode + cu_alt: false, // Application Cursors Mode + fn_alt: false, // SS3 function keys mode + mt_click: false, // Mouse click tracking + mt_move: false, // Mouse move tracking + no_keys: false, // Suppress any key / clipboard event intercepting + crlf_mode: false, // Enter sends CR LF + all_fn: false // Capture also F5, F11 and F12 } /** Fn alt choice for key message */ @@ -265,7 +265,6 @@ module.exports = function (conn, screen) { const handleKeyDown = function (e) { if (!shouldAcceptEvent()) return - if (cfg.no_keys) return let modifiers = [] // sorted alphabetically