Fix tab switching (#709)

* Passthrough tab switching keystrokes

fixes #658

* fix formatting
This commit is contained in:
Vitaly Domnikov 2016-09-14 22:36:16 -07:00 committed by Leo Lamprecht
parent e62a674c4c
commit 42a69e0c76

View file

@ -101,7 +101,7 @@ hterm.Keyboard.prototype.onKeyDown_ = function (e) {
console.warn('Uncaught dead key on international keyboard', e);
}
if (e.metaKey || e.altKey) {
if (e.metaKey || e.altKey || (e.ctrlKey && e.code === 'Tab')) {
return;
} else {
// Test for valid keys in order to clear the terminal selection