From 09c383a1bdef76310974b7582f38d2732131a5f1 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sun, 10 Jan 2016 23:17:43 +0200 Subject: [PATCH] Deselect all shapes on ESC is clicked. --- frontend/uxbox/ui/workspace/shortcuts.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/uxbox/ui/workspace/shortcuts.cljs b/frontend/uxbox/ui/workspace/shortcuts.cljs index 5972d41add..f42107bcf2 100644 --- a/frontend/uxbox/ui/workspace/shortcuts.cljs +++ b/frontend/uxbox/ui/workspace/shortcuts.cljs @@ -18,7 +18,7 @@ :ctrl+shift+f #(rs/emit! (dw/toggle-toolbox :draw)) :ctrl+shift+i #(rs/emit! (dw/toggle-toolbox :icons)) :ctrl+shift+l #(rs/emit! (dw/toggle-toolbox :layers)) - :esc (constantly nil) + :esc #(rs/emit! (dw/deselect-all)) :backspace #(rs/emit! (dw/remove-selected))}) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;