1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-20 17:11:47 +03:00

Merge pull request #4992 from NessunKim/hotkey-backticks

This commit is contained in:
Eugeny 2021-11-25 12:36:11 +01:00 committed by GitHub
commit 59ee098fde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: ';',