Merge pull request #4098 from qburst/4089--fix-image-preview-not-closing-on-escape

fix: fix image preview not closing on escape
pull/4188/head
Tuğçe Küçükoğlu 2023-07-21 16:45:16 +03:00 committed by GitHub
commit fe249402bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ export default {
onMaskKeydown(event) {
switch (event.code) {
case 'Escape':
this.onMaskClick();
this.hidePreview();
setTimeout(() => {
DomHandler.focus(this.$refs.previewButton);
}, 25);