chore: 使用keydown替换keypresskeypress事件已弃用 (#1195)

This commit is contained in:
XiaoYue 2024-12-27 09:55:28 +08:00 committed by GitHub
parent 6d26300181
commit 79cd159154
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,7 +96,7 @@ const immediateDebounce: any = debounce(
true
);
useEventListener(document, "keypress", ({ code }) => {
useEventListener(document, "keydown", ({ code }) => {
if (
["Enter", "NumpadEnter"].includes(code) &&
!disabled.value &&