mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-15 17:09:59 +00:00
Fix hotkey setter to handle backticks and tildes properly
This commit is contained in:
parent
2baede4675
commit
cd09043558
@ -39,6 +39,10 @@ export function getKeyName (event: KeyEventData): KeyName {
|
|||||||
key = altKeyName
|
key = altKeyName
|
||||||
} else if (event.key === 'Shift') {
|
} else if (event.key === 'Shift') {
|
||||||
key = 'Shift'
|
key = 'Shift'
|
||||||
|
} else if (event.key === '`') {
|
||||||
|
key = '`'
|
||||||
|
} else if (event.key === '~') {
|
||||||
|
key = '~'
|
||||||
} else {
|
} else {
|
||||||
key = event.code
|
key = event.code
|
||||||
if (REGEX_LATIN_KEYNAME.test(event.key)) {
|
if (REGEX_LATIN_KEYNAME.test(event.key)) {
|
||||||
@ -54,7 +58,6 @@ export function getKeyName (event: KeyEventData): KeyName {
|
|||||||
Slash: '/',
|
Slash: '/',
|
||||||
Backslash: '\\',
|
Backslash: '\\',
|
||||||
IntlBackslash: '`',
|
IntlBackslash: '`',
|
||||||
Backquote: '~', // Electron says it's the tilde
|
|
||||||
Minus: '-',
|
Minus: '-',
|
||||||
Equal: '=',
|
Equal: '=',
|
||||||
Semicolon: ';',
|
Semicolon: ';',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user