mirror of
https://github.com/penpot/penpot.git
synced 2026-03-10 20:26:30 +00:00
🐛 Fix viewport context-menu (right-click).
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user