MCPcopy Create free account
hub / github.com/bevyengine/bevy-website / navigateDocsNext

Function navigateDocsNext

static/optional-helpers.js:4–17  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

2// core functionality should not be affected.
3
4function navigateDocsNext(e) {
5 if (e.key == 'ArrowLeft') {
6 var previous = document.querySelector("[data-docs-nav-previous]");
7 if (previous) {
8 previous.click();
9 }
10
11 } else if (e.key == 'ArrowRight') {
12 var next = document.querySelector("[data-docs-nav-next]");
13 if (next) {
14 next.click();
15 }
16 }
17}
18
19window.addEventListener('load', function () {
20 window.addEventListener('keydown', navigateDocsNext);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected