mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-04 07:27:41 +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
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
useEventListener(document, "keypress", ({ code }) => {
|
useEventListener(document, "keydown", ({ code }) => {
|
||||||
if (
|
if (
|
||||||
["Enter", "NumpadEnter"].includes(code) &&
|
["Enter", "NumpadEnter"].includes(code) &&
|
||||||
!disabled.value &&
|
!disabled.value &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user