This commit is contained in:
romankko2 committed 2023-08-07 17:47:20 +02:00
1 parent bed6793b8b
commit b02a8c734d
18 files changed
+95 -23

No files matched your search

@@ -0,0 +1,11 @@
export default {
mounted() {
window.addEventListener('keydown', this.handleKeyDown)
},
methods: {
handleKeyDown(event) {
if (event.keyCode === 27) this.closeModal()
}
},
}