mirror of
https://github.com/Eugeny/tabby.git
synced 2025-03-13 15:27:07 +08:00
skip invalid hotkey config (fixes #817)
This commit is contained in:
parent
e1cc1d56ea
commit
953b06f43f
@ -216,6 +216,9 @@ export class HotkeysService {
|
||||
if (typeof value === 'string') {
|
||||
value = [value]
|
||||
}
|
||||
if (!(value instanceof Array)) {
|
||||
continue
|
||||
}
|
||||
if (value) {
|
||||
value = value.map((item: string | string[]) => typeof item === 'string' ? [item] : item)
|
||||
keys[key] = value
|
||||
|
Loading…
x
Reference in New Issue
Block a user