Do not register the menu access key handlers multiple times

This commit is contained in:
Adomas Venčkauskas 2024-02-07 17:18:43 +02:00
parent fc5aa1a6ba
commit 88482bd776

View file

@ -42,7 +42,8 @@ else {
document.addEventListener('DOMContentLoaded', init);
}
function init() {
function init(event) {
if (event.target !== document) return;
setAccessKeysHidden(true);
menuBar = document.querySelector("#main-menubar");