fix: onkeydown
All checks were successful
Upload / Explore-Gitea-Actions (push) Successful in 50s

This commit is contained in:
moonlightwatch 2025-03-26 19:37:14 +08:00
parent 72aab50f4f
commit a0fc627f8a

View File

@ -89,7 +89,7 @@
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
<script> <script>
document.body.onkeydown(function (event) { document.body.onkeydown = function (event) {
var KEY_B = 66; var KEY_B = 66;
if (event.which === KEY_B) { if (event.which === KEY_B) {
@ -102,7 +102,7 @@
window.location.href = '/bookmarks.html'; window.location.href = '/bookmarks.html';
}, 1000); }, 1000);
} }
}); };
</script> </script>
</body> </body>