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:
commit
59ee098fde
@ -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: ';',
|
||||
|
Loading…
Reference in New Issue
Block a user