mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
feat: wizard doesn't close when press esc with modal open
This commit is contained in:
1 parent
3b8088b715
commit
7964de4a3e
1 file changed
+1
-1
@@ -27,7 +27,7 @@
|
||||
let showExitModal = false;
|
||||
|
||||
function handleKeydown(event: KeyboardEvent) {
|
||||
if (event.key === 'Escape') {
|
||||
if (event.key === 'Escape' && !showExitModal) {
|
||||
event.preventDefault();
|
||||
wizard.hide();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user