Add French keyboard compatibility (#638)

This commit is contained in:
chabou 2016-08-22 19:43:56 +02:00 committed by James Hall
parent ef94760f0f
commit a724f4fbd2

View file

@ -89,6 +89,15 @@ hterm.Keyboard.prototype.onKeyDown_ = function (e) {
e.preventDefault();
return;
}
// French keyboard layout
if (e.code === 'BracketLeft') {
this.terminal.onVTKeystroke('^');
return;
}
if (e.code === 'Backslash') {
this.terminal.onVTKeystroke('`');
return;
}
console.warn('Uncaught dead key on international keyboard', e);
}