mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-04 11:49:02 +08:00
fix: 快捷键无法绑定空格
This commit is contained in:
parent
04cfe5019e
commit
0eead315d8
@ -113,7 +113,11 @@ const ShortcutSettings: FC = () => {
|
|||||||
const key = e.key
|
const key = e.key
|
||||||
|
|
||||||
if (key.length === 1 && !['Control', 'Alt', 'Shift', 'Meta'].includes(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)) {
|
if (!isValidShortcut(keys)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user