refactor: add ignoreWhenModalOpen parameter to useKeyDown

This commit is contained in:
2026-10-07 14:01:13 +02:00
parent f1ee6922b1
commit 822a66a20f
3 changed files with 40 additions and 28 deletions

View File

@@ -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