add copy svg keyboard shortcut (#573)

pull/575/head
Eswar Prasad Clinton. A 2022-02-13 18:07:01 +05:30 zatwierdzone przez GitHub
rodzic 8549c73884
commit 5721885161
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -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',
() => {