From 67e952e47e7395f8b83de14e474c6320d0116bfe Mon Sep 17 00:00:00 2001 From: jmal Date: Sun, 28 Aug 2022 14:52:13 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E6=AD=A3=E5=9C=A8=E8=BE=93=E5=85=A5=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E4=BD=BFCtrl/Cmd+A=E6=81=A2=E5=A4=8D=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 67bff0c..3241449 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -934,7 +934,7 @@ export default { } // ctrl + A / cmd + A if (this.isCmd && keyCode == 65) { - if (this.inputting) { + if (this.inputting || this.editingIndex !== -1) { event.target.select() } else { this.$nextTick(() => { @@ -2333,6 +2333,7 @@ export default { }, // 选取输入框部分内容 renameInputFocus(doc, suffix) { + this.setInputFocus() doc.focus() doc.selectionStart = 0 doc.selectionEnd = doc.value.length