add copy svg keyboard shortcut (#573)
This commit is contained in:
parent
8549c73884
commit
5721885161
1 changed files with 12 additions and 0 deletions
|
@ -497,6 +497,18 @@ export function useKeyboardShortcuts(ref: React.RefObject<HTMLDivElement>) {
|
|||
[app]
|
||||
)
|
||||
|
||||
useHotkeys(
|
||||
'⌘+shift+c,ctrl+shift+c',
|
||||
(e) => {
|
||||
if (!canHandleEvent()) return
|
||||
|
||||
app.copySvg()
|
||||
e.preventDefault()
|
||||
},
|
||||
undefined,
|
||||
[app]
|
||||
)
|
||||
|
||||
useHotkeys(
|
||||
'⌘+x,ctrl+x',
|
||||
() => {
|
||||
|
|
Loading…
Reference in a new issue