feat(nds): display hints if user presses X while trying to press NDS_X (and other buttons)
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m1s

This commit is contained in:
2026-03-11 00:41:58 +01:00
parent b3ffaf6794
commit 5814ce439c

View File

@@ -146,7 +146,7 @@ onMounted(async () => {
} }
}); });
useKeyDown(async ({ key, repeated }) => { useKeyDown(async ({ key, ndsButton, repeated }) => {
if (!repeated && key.toLocaleLowerCase() === "h") { if (!repeated && key.toLocaleLowerCase() === "h") {
if (app.hintsVisible) { if (app.hintsVisible) {
hideHelpLabels(); hideHelpLabels();
@@ -154,6 +154,11 @@ useKeyDown(async ({ key, repeated }) => {
await showHelpLabels(); await showHelpLabels();
} }
} }
const rawKey = key.toLowerCase();
if (!repeated && !app.hintsVisible && (rawKey === "x" || rawKey === "b" || rawKey === "y")) {
await showHelpLabels();
}
}); });
</script> </script>