diff --git a/js/index.js b/js/index.js
index a458f01..745aa6d 100644
--- a/js/index.js
+++ b/js/index.js
@@ -29,12 +29,6 @@ function getKey(action) {
return key
}
-window.onload = function() {
- document.getElementById("actions").innerHTML = actionLabel.map(action => `
${action.label}
-
-`).join("\n")
-}
-
function changeKey(button, action) {
button.innerHTML = "Touche ?"
selectedButton = button
@@ -50,4 +44,10 @@ function keyUpHandler(e) {
}
}
-addEventListener("keyup", keyUpHandler, false)
\ No newline at end of file
+window.onload = function() {
+ document.getElementById("actions").innerHTML = actionLabel.map(action => `${action.label}
+
+`).join("\n")
+
+ addEventListener("keyup", keyUpHandler, false)
+}
\ No newline at end of file