From def189e5bc21424128984208f3386d0332dd6ad6 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sun, 6 Oct 2024 21:14:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=99=9A=E6=8B=9F=E9=94=AE=E7=9B=98?= =?UTF-8?q?=E5=A4=9A=E6=AC=A1=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin/utils.ts b/src/plugin/utils.ts index 7b1b38a..8e71b0b 100644 --- a/src/plugin/utils.ts +++ b/src/plugin/utils.ts @@ -446,7 +446,7 @@ export function getVitualKeyOnce( const key = Keyboard.get('full')!; key.withAssist(assist); const id = mainUi.open('virtualKey', { keyboard: key }); - key.on('emit', (item, assist, index, ev) => { + key.once('emit', (item, assist, index, ev) => { ev.preventDefault(); if (emitAssist) { if (emittable.length === 0 || emittable.includes(item.key)) {