refactor: add ignoreWhenModalOpen parameter to useKeyDown
This commit is contained in:
@@ -151,12 +151,15 @@ onClick((x, y) => {
|
||||
}
|
||||
});
|
||||
|
||||
useKeyDown(({ key }) => {
|
||||
if (isAnimating.value) return;
|
||||
if (key === "NDS_X") {
|
||||
handleVisitAll();
|
||||
}
|
||||
});
|
||||
useKeyDown(
|
||||
({ key }) => {
|
||||
if (isAnimating.value) return;
|
||||
if (key === "NDS_X") {
|
||||
handleVisitAll();
|
||||
}
|
||||
},
|
||||
{ ignoreWhenModalOpen: true },
|
||||
);
|
||||
|
||||
onRender((ctx) => {
|
||||
// slash divider
|
||||
|
||||
Reference in New Issue
Block a user