kopia lustrzana https://github.com/Tldraw/Tldraw
add copy svg keyboard shortcut (#573)
rodzic
8549c73884
commit
5721885161
|
@ -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',
|
||||
() => {
|
||||
|
|
Ładowanie…
Reference in New Issue