mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
Add French keyboard compatibility (#638)
This commit is contained in:
parent
ef94760f0f
commit
a724f4fbd2
1 changed files with 9 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue