mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-12-15 14:50:29 +08:00
chore: 使用keydown替换keypress,keypress事件已弃用 (#1195)
This commit is contained in:
@@ -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 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user