0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00

🐛 Fix viewport context-menu (right-click).

This commit is contained in:
Andrey Antukh 2020-03-26 15:18:06 +01:00
parent 4da4bdd577
commit cd2302c8d5

View file

@ -101,9 +101,11 @@
(mf/defc viewport-context-menu
[{:keys [mdata] :as props}]
[:*
[:li i/copy [:span "paste (TODO)"]]
[:li i/copy [:span "copy as svg (TODO)"]]])
(let [do-paste #(st/emit! dw/paste)]
[:*
[:& menu-entry {:title "Paste"
:shortcut "Ctrl + v"
:on-click do-paste}]]))
(mf/defc context-menu
[props]