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) {
|
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);
|
||||||
|
|
Loading…
Reference in New Issue