escape key support
This commit is contained in:
parent
f5567a71b3
commit
3bc63178dc
|
|
@ -1631,6 +1631,7 @@
|
||||||
<!-- Template Selection Modal -->
|
<!-- Template Selection Modal -->
|
||||||
<div x-show="showTemplateModal"
|
<div x-show="showTemplateModal"
|
||||||
@click.self="showTemplateModal = false; selectedTemplate = ''; newTemplateNoteName = ''"
|
@click.self="showTemplateModal = false; selectedTemplate = ''; newTemplateNoteName = ''"
|
||||||
|
@keydown.escape.window="showTemplateModal && (showTemplateModal = false, selectedTemplate = '', newTemplateNoteName = '')"
|
||||||
class="fixed inset-0 flex items-center justify-center z-50"
|
class="fixed inset-0 flex items-center justify-center z-50"
|
||||||
style="background-color: rgba(0, 0, 0, 0.5);"
|
style="background-color: rgba(0, 0, 0, 0.5);"
|
||||||
x-cloak>
|
x-cloak>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue