From 61ce86aef41f605d0ceb78b0117f8f667a4cb72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Tue, 15 Sep 2015 12:59:11 +0300 Subject: [PATCH] Handle space bar key down When using the Smooth Scrolling extension for Chrome for some reason the space bar is not working. This fixes it adding support for space bar key down. --- src/term.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/term.js b/src/term.js index f542dd0..68bc073 100644 --- a/src/term.js +++ b/src/term.js @@ -2615,6 +2615,10 @@ Terminal.prototype.keyDown = function(ev) { case 27: key = '\x1b'; break; + // space + case 32: + key = '\x20'; + break; // left-arrow case 37: if (this.applicationCursor) {