From b82043ae6ba737847ef9041b257e6c79904388c6 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 16 Mar 2017 09:27:37 +0100 Subject: [PATCH] Remove identical if statement branches in keyDown handler This is a minor tweak. These two code paths are identical, there's no need for the if statement here. --- src/term.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/term.js b/src/term.js index 68bc073..59a5538 100644 --- a/src/term.js +++ b/src/term.js @@ -2680,18 +2680,10 @@ Terminal.prototype.keyDown = function(ev) { break; // home case 36: - if (this.applicationKeypad) { - key = '\x1bOH'; - break; - } key = '\x1bOH'; break; // end case 35: - if (this.applicationKeypad) { - key = '\x1bOF'; - break; - } key = '\x1bOF'; break; // page up