Browse Source

fix: close img overlay after pressing escape key

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1512/head
Wing-Kam Wong 3 years ago
parent
commit
6e8a6f71eb
  1. 3
      packages/nc-gui/components/project/spreadsheet/components/editableCell/editableAttachmentCell.vue

3
packages/nc-gui/components/project/spreadsheet/components/editableCell/editableAttachmentCell.vue

@ -389,6 +389,9 @@ export default {
// eslint-disable-next-line eqeqeq // eslint-disable-next-line eqeqeq
} else if (e.keyCode == '39') { } else if (e.keyCode == '39') {
this.carousel = ++this.carousel % this.localState.length this.carousel = ++this.carousel % this.localState.length
// eslint-disable-next-line eqeqeq
} else if (e.keyCode == '27') {
this.hideIfVisible()
} }
}, },
async onFileDrop(e) { async onFileDrop(e) {

Loading…
Cancel
Save