Disable keyboard navigation for all buttons

This commit is contained in:
Unrud 2024-01-31 09:33:09 +01:00
parent 1985842ff0
commit d502ca651c

View file

@ -63,6 +63,7 @@ export default class UI {
compat.addFullscreenchangeEventListener(() => { this.#update(); });
compat.addPointerlockchangeEventListener(() => { this.#update(); });
for (const button of buttons) {
button.setAttribute("tabindex", "-1");
button.addEventListener("click", this.#handleButtonClick.bind(this));
}
this.#update();