fix: 撤回上个fix

This commit is contained in:
unanmed 2024-10-06 21:23:52 +08:00
parent def189e5bc
commit e33654dac3

View File

@ -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)) {