escape key support

This commit is contained in:
Gamosoft 2025-11-26 11:30:33 +01:00
parent f5567a71b3
commit 3bc63178dc
1 changed files with 1 additions and 0 deletions

View File

@ -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>