From d506429d8fed34c310e481dbf5e1670fdceabc51 Mon Sep 17 00:00:00 2001 From: Simon Howe Date: Wed, 6 Jul 2016 11:24:40 +0200 Subject: [PATCH] Support single/double quote key on us-intl keyboards in terminal Doesn't support the accenting capabilities of this key but gives you single/double quotes back which is a long way. If you need accented keys for filenames etc you'll have to use other kb tricks. --- client/app/scripts/vendor/term.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/app/scripts/vendor/term.js b/client/app/scripts/vendor/term.js index a6aba7829..ca8c47ade 100644 --- a/client/app/scripts/vendor/term.js +++ b/client/app/scripts/vendor/term.js @@ -2756,6 +2756,13 @@ Terminal.prototype.keyDown = function(ev) { case 123: key = '\x1b[24~'; break; + // Special case for US-intl '/" + case 222: + key = '\''; + if (ev.shiftKey) { + key = '"'; + } + break; default: // a-z and space if (ev.ctrlKey) {