From 6d9155032f398f20caadcb46ad0fd58126df4cf8 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 2 Oct 2020 13:17:21 +0200 Subject: [PATCH] :bug: Makes esc exit text edition and drawing shape at the same time --- frontend/src/app/main/ui/workspace/shapes/text.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/shapes/text.cljs b/frontend/src/app/main/ui/workspace/shapes/text.cljs index 9e2fd6b68e..0dca22b442 100644 --- a/frontend/src/app/main/ui/workspace/shapes/text.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/text.cljs @@ -317,7 +317,9 @@ (fn [event] (dom/stop-propagation event) (when (= (.-keyCode event) 27) ; ESC - (on-close))) + (do + (st/emit! :interrupt) + (on-close)))) on-mount (fn []