mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-02 10:57:24 +08:00
chore: 使用keydown
替换keypress
,keypress
事件已弃用 (#1195)
This commit is contained in:
parent
6d26300181
commit
79cd159154
@ -96,7 +96,7 @@ const immediateDebounce: any = debounce(
|
||||
true
|
||||
);
|
||||
|
||||
useEventListener(document, "keypress", ({ code }) => {
|
||||
useEventListener(document, "keydown", ({ code }) => {
|
||||
if (
|
||||
["Enter", "NumpadEnter"].includes(code) &&
|
||||
!disabled.value &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user