mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
fix: 快捷键无法绑定空格
This commit is contained in:
parent
470ec81827
commit
ffd1d47277
@ -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…
Reference in New Issue
Block a user