Do not register the menu access key handlers multiple times
This commit is contained in:
parent
fc5aa1a6ba
commit
88482bd776
1 changed files with 2 additions and 1 deletions
|
@ -42,7 +42,8 @@ else {
|
||||||
document.addEventListener('DOMContentLoaded', init);
|
document.addEventListener('DOMContentLoaded', init);
|
||||||
}
|
}
|
||||||
|
|
||||||
function init() {
|
function init(event) {
|
||||||
|
if (event.target !== document) return;
|
||||||
setAccessKeysHidden(true);
|
setAccessKeysHidden(true);
|
||||||
|
|
||||||
menuBar = document.querySelector("#main-menubar");
|
menuBar = document.querySelector("#main-menubar");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue