From 85e8373de8f60f80b432a10e7733bffe627373ac Mon Sep 17 00:00:00 2001 From: Jeremy Ebneyamin Date: Sun, 1 Nov 2015 16:52:46 -0800 Subject: [PATCH] Reduce ctrl intercept scope Make sure only the ctrl key is modifying the currently pressed key when intercepting for an escape code sequence. This reduces the number of key combinations the terminal interrupts. --- src/term.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/term.js b/src/term.js index 71c11c0..3b07a8b 100644 --- a/src/term.js +++ b/src/term.js @@ -2832,7 +2832,7 @@ Terminal.prototype.keyDown = function(ev) { break; default: // a-z and space - if (ev.ctrlKey && !ev.shiftKey) { + if (ev.ctrlKey && !ev.shiftKey && !ev.altKey && !ev.metaKey) { if (ev.keyCode >= 65 && ev.keyCode <= 90) { // Ctrl-A if (this.screenKeys) {