0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 02:28:18 -05:00

add V as shortcut to exit path editor

This commit is contained in:
Eva 2022-01-13 18:50:04 +01:00 committed by Andrey Antukh
parent 88e222420c
commit 327c095d79

View file

@ -73,7 +73,7 @@
:fn #(st/emit! (drp/toggle-snap))}
:escape {:tooltip (ds/esc)
:command ["escape" "enter"]
:command ["escape" "enter" "v"]
:fn #(st/emit! (esc-pressed))}
:undo {:tooltip (ds/meta "Z")
@ -138,9 +138,7 @@
:move-unit-right {:tooltip ds/left-arrow
:command "left"
:fn #(st/emit! (drp/move-selected :left false))}
})
:fn #(st/emit! (drp/move-selected :left false))}})
(defn get-tooltip [shortcut]
(assert (contains? shortcuts shortcut) (str shortcut))