diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 1ea0bd7..f3e195a 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -1344,13 +1344,9 @@ export default { } // space if (keyCode === 32) { - if (this.inputting || this.editingIndex !== -1) { - event.target.select() - } else { - if (this.selectRowData.length > 0 && !this.drawer) { - this.drawer = true - this.drawerShowTime = Date.now() - } + if (!this.inputting && this.selectRowData.length > 0 && !this.drawer) { + this.drawer = true + this.drawerShowTime = Date.now() event.preventDefault() event.stopPropagation() }