diff --git a/tabby-core/src/services/hotkeys.util.ts b/tabby-core/src/services/hotkeys.util.ts index 467432c6..8a35bc8a 100644 --- a/tabby-core/src/services/hotkeys.util.ts +++ b/tabby-core/src/services/hotkeys.util.ts @@ -39,6 +39,10 @@ export function getKeyName (event: KeyEventData): KeyName { key = altKeyName } else if (event.key === 'Shift') { key = 'Shift' + } else if (event.key === '`') { + key = '`' + } else if (event.key === '~') { + key = '~' } else { key = event.code if (REGEX_LATIN_KEYNAME.test(event.key)) { @@ -54,7 +58,6 @@ export function getKeyName (event: KeyEventData): KeyName { Slash: '/', Backslash: '\\', IntlBackslash: '`', - Backquote: '~', // Electron says it's the tilde Minus: '-', Equal: '=', Semicolon: ';',