Merge pull request #4098 from qburst/4089--fix-image-preview-not-closing-on-escape
fix: fix image preview not closing on escapepull/4188/head
commit
fe249402bf
|
@ -120,7 +120,7 @@ export default {
|
|||
onMaskKeydown(event) {
|
||||
switch (event.code) {
|
||||
case 'Escape':
|
||||
this.onMaskClick();
|
||||
this.hidePreview();
|
||||
setTimeout(() => {
|
||||
DomHandler.focus(this.$refs.previewButton);
|
||||
}, 25);
|
||||
|
|
Loading…
Reference in New Issue