mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 15:06:13 +02:00
♻️ Improves shortcuts lifecycle management.
This commit is contained in:
parent
c33c3fb2fa
commit
4b7f82a9d9
6 changed files with 130 additions and 55 deletions
|
@ -237,7 +237,7 @@
|
|||
(events/unlistenByKey key3))))]
|
||||
|
||||
(mf/use-effect on-mount)
|
||||
(hooks/use-shortcuts sc/shortcuts)
|
||||
(hooks/use-shortcuts ::viewer sc/shortcuts)
|
||||
|
||||
[:div.viewer-layout {:class (dom/classnames :force-visible
|
||||
(:show-thumbnails state))}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue