fix: 快捷键无法绑定空格
This commit is contained in:
parent
04cfe5019e
commit
0eead315d8
@ -113,7 +113,11 @@ const ShortcutSettings: FC = () => {
|
||||
const key = e.key
|
||||
|
||||
if (key.length === 1 && !['Control', 'Alt', 'Shift', 'Meta'].includes(key)) {
|
||||
keys.push(key.toUpperCase())
|
||||
if (key === ' ') {
|
||||
keys.push('Space')
|
||||
} else {
|
||||
keys.push(key.toUpperCase())
|
||||
}
|
||||
}
|
||||
|
||||
if (!isValidShortcut(keys)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user