Skip to content

Commit

Permalink
chore: 使用keydown替换keypresskeypress事件已弃用 (#1195)
Browse files Browse the repository at this point in the history
  • Loading branch information
raoanqi authored Dec 27, 2024
1 parent 6d26300 commit 79cd159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const immediateDebounce: any = debounce(
true
);
useEventListener(document, "keypress", ({ code }) => {
useEventListener(document, "keydown", ({ code }) => {
if (
["Enter", "NumpadEnter"].includes(code) &&
!disabled.value &&
Expand Down

0 comments on commit 79cd159

Please sign in to comment.