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.
This commit is contained in:
Simon Howe
2016-07-06 11:24:40 +02:00
parent d79a412116
commit d506429d8f

View File

@@ -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) {