From e33654dac361e2bddc8da1237128cf7a606bf7d1 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sun, 6 Oct 2024 21:23:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=92=A4=E5=9B=9E=E4=B8=8A=E4=B8=AAfix?= 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 8e71b0b..7b1b38a 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.once('emit', (item, assist, index, ev) => { + key.on('emit', (item, assist, index, ev) => { ev.preventDefault(); if (emitAssist) { if (emittable.length === 0 || emittable.includes(item.key)) {