Merge pull request #2730 from penpot/superalex-fix-enter-events

🐛 Fix enter events
This commit is contained in:
Pablo Alba
2023-01-04 14:37:15 +01:00
committed by GitHub
2 changed files with 5 additions and 3 deletions

View File

@@ -36,6 +36,7 @@
- Fix missing create component menu for frames [Github #2670](https://github.com/penpot/penpot/issues/2670)
- Fix "currentColor" is not converted when importing SVG [Github 2276](https://github.com/penpot/penpot/issues/2276)
- Fix incorrect color in properties of multiple bool shapes [Taiga #4355](https://tree.taiga.io/project/penpot/issue/4355)
- Fix pressing the enter key gives you an internal error [Github 2675](https://github.com/penpot/penpot/issues/2675) [Github 2577](https://github.com/penpot/penpot/issues/2577)
### :arrow_up: Deps updates

View File

@@ -84,9 +84,10 @@
(dom/stop-propagation event)
(st/emit! (modal/hide))
(on-accept props)))]
(->> (events/listen js/document EventType.KEYDOWN on-keydown)
(partial events/unlistenByKey)))
#(st/emit! (dd/clean-temp-shared)))
(let [key (events/listen js/document EventType.KEYDOWN on-keydown)]
(fn []
(events/unlistenByKey key)
(st/emit! (dd/clean-temp-shared))))))
[:div.modal-overlay
[:div.modal-container.confirm-dialog