mirror of
https://github.com/penpot/penpot.git
synced 2025-03-11 23:31:21 -05:00
🐛 Removed shortcut ctrl+alt+enter in production
This commit is contained in:
parent
fcd29211a4
commit
a3f44074a0
1 changed files with 9 additions and 6 deletions
|
@ -547,11 +547,6 @@
|
|||
:subsections [:shape]
|
||||
: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
|
||||
:toggle-theme {:tooltip (ds/alt "M")
|
||||
:command (ds/a-mod "m")
|
||||
|
@ -559,6 +554,12 @@
|
|||
:fn #(st/emit! (with-meta (du/toggle-theme)
|
||||
{::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
|
||||
(into {} (->>
|
||||
(range 10)
|
||||
|
@ -569,7 +570,9 @@
|
|||
:fn #(emit-when-no-readonly (dwly/pressed-opacity n))}])))))
|
||||
|
||||
(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]
|
||||
(assert (contains? shortcuts shortcut) (str shortcut))
|
||||
|
|
Loading…
Add table
Reference in a new issue