mounted () {
const escapeHandler = (e:any) => {
if (e.key === `Escape` && this.showModal) {
this.showForm()
}
}
document.addEventListener(`keydown`, escapeHandler)
this.$once(`hook:destroyed`, () => {
document.removeEventListener(`keydown`, escapeHandler)
})
}