enhance: fix label and reintroduce click handler

pull/6440/head
Konstantinos Kaloutas 2022-08-17 16:55:52 +03:00 committed by Andelf
parent 11bd4209a9
commit 93c87c0d5d
2 changed files with 2 additions and 1 deletions

View File

@ -206,7 +206,7 @@
{:key "Copy as"
:on-click (fn [_]
(state/set-modal! #(export/export-blocks [block-id])))}
"Copy as")
"Copy as...")
(ui/menu-link
{:key "Cut"

View File

@ -538,6 +538,7 @@
rum/reactive
(mixins/event-mixin
(fn [state]
(mixins/listen state js/window "click" hide-context-menu-and-clear-selection)
(mixins/listen state js/window "keydown"
(fn [e]
(when (= 27 (.-keyCode e))