mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
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:
7
client/app/scripts/vendor/term.js
vendored
7
client/app/scripts/vendor/term.js
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user