From a724f4fbd2bc6d74e72c5606224bdef2a1343278 Mon Sep 17 00:00:00 2001 From: chabou Date: Mon, 22 Aug 2016 19:43:56 +0200 Subject: [PATCH] Add French keyboard compatibility (#638) --- lib/hterm.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/hterm.js b/lib/hterm.js index ee61af3a..b90d32d0 100644 --- a/lib/hterm.js +++ b/lib/hterm.js @@ -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); }