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) { onMaskKeydown(event) {
switch (event.code) { switch (event.code) {
case 'Escape': case 'Escape':
this.onMaskClick(); this.hidePreview();
setTimeout(() => { setTimeout(() => {
DomHandler.focus(this.$refs.previewButton); DomHandler.focus(this.$refs.previewButton);
}, 25); }, 25);