0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 07:41:43 -05:00

🐛 Removed shortcut ctrl+alt+enter in production

This commit is contained in:
alonso.torres 2024-04-09 18:05:00 +02:00
parent fcd29211a4
commit a3f44074a0

View file

@ -547,11 +547,6 @@
:subsections [:shape] :subsections [:shape]
:fn #(emit-when-no-readonly (dw/create-bool :exclude))} :fn #(emit-when-no-readonly (dw/create-bool :exclude))}
;; PREVIEW
:preview-frame {:tooltip (ds/meta (ds/alt ds/enter))
:command (ds/c-mod "alt+enter")
:fn #(emit-when-no-readonly (dp/open-preview-selected))}
;; THEME ;; THEME
:toggle-theme {:tooltip (ds/alt "M") :toggle-theme {:tooltip (ds/alt "M")
:command (ds/a-mod "m") :command (ds/a-mod "m")
@ -559,6 +554,12 @@
:fn #(st/emit! (with-meta (du/toggle-theme) :fn #(st/emit! (with-meta (du/toggle-theme)
{::ev/origin "workspace:shortcut"}))}}) {::ev/origin "workspace:shortcut"}))}})
(def debug-shortcuts
;; PREVIEW
{:preview-frame {:tooltip (ds/meta (ds/alt ds/enter))
:command (ds/c-mod "alt+enter")
:fn #(emit-when-no-readonly (dp/open-preview-selected))}})
(def opacity-shortcuts (def opacity-shortcuts
(into {} (->> (into {} (->>
(range 10) (range 10)
@ -569,7 +570,9 @@
:fn #(emit-when-no-readonly (dwly/pressed-opacity n))}]))))) :fn #(emit-when-no-readonly (dwly/pressed-opacity n))}])))))
(def shortcuts (def shortcuts
(merge base-shortcuts opacity-shortcuts dwtxts/shortcuts)) (cond-> (merge base-shortcuts opacity-shortcuts dwtxts/shortcuts)
*assert*
(merge debug-shortcuts)))
(defn get-tooltip [shortcut] (defn get-tooltip [shortcut]
(assert (contains? shortcuts shortcut) (str shortcut)) (assert (contains? shortcuts shortcut) (str shortcut))