mirror of
https://github.com/penpot/penpot.git
synced 2026-08-26 14:48:43 +00:00
🐛 Fix viewport context-menu (right-click).
This commit is contained in:
parent
4da4bdd577
commit
cd2302c8d5
@ -101,9 +101,11 @@
|
|||||||
|
|
||||||
(mf/defc viewport-context-menu
|
(mf/defc viewport-context-menu
|
||||||
[{:keys [mdata] :as props}]
|
[{:keys [mdata] :as props}]
|
||||||
[:*
|
(let [do-paste #(st/emit! dw/paste)]
|
||||||
[:li i/copy [:span "paste (TODO)"]]
|
[:*
|
||||||
[:li i/copy [:span "copy as svg (TODO)"]]])
|
[:& menu-entry {:title "Paste"
|
||||||
|
:shortcut "Ctrl + v"
|
||||||
|
:on-click do-paste}]]))
|
||||||
|
|
||||||
(mf/defc context-menu
|
(mf/defc context-menu
|
||||||
[props]
|
[props]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user