From bc62099dddba8951aaf4a49ca1ce98a9af0f4bc3 Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Sun, 1 Sep 2024 18:05:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8C=89=E4=BD=8F=20Ctrl=20=E9=94=AE?= =?UTF-8?q?=E6=97=B6=E5=8F=AF=E4=BB=A5=E6=89=93=E5=BC=80=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/App.vue b/src/App.vue index 18fedac..bfdde2a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -70,6 +70,11 @@ function handleContextMenu(event) { let element = event.target; + // 排除按住 Ctrl 键时 + if (event.ctrlKey) { + return; + } + // 排除输入框元素 if ( element instanceof HTMLInputElement &&