Backspace translation

This commit is contained in:
Adrien MALINGREY 2023-06-14 18:14:45 +02:00
parent b358611c28
commit ba313cbbd7

28
app.js
View File

@ -45,20 +45,22 @@ const FACING = {
} }
const KEY_NAMES = { const KEY_NAMES = {
["ArrowLeft"]: "←", ["ArrowLeft"]: "←",
["ArrowRight"]: "→", ["ArrowRight"]: "→",
["ArrowUp"]: "↑", ["ArrowUp"]: "↑",
["ArrowDown"]: "↓", ["ArrowDown"]: "↓",
[" "]: "Espace", [" "]: "Espace",
["Escape"]: "Échap", ["Escape"]: "Échap.",
["Enter"]: "Entrée", ["Backspace"]: "Ret. arrière",
["←"]: "ArrowLeft", ["Enter"]: "Entrée",
["→"]: "ArrowRight", ["←"]: "ArrowLeft",
["↑"]: "ArrowUp", ["→"]: "ArrowRight",
["↓"]: "ArrowDown", ["↑"]: "ArrowUp",
["Espace"]: " ", ["↓"]: "ArrowDown",
["Échap"]: "Escape", ["Espace"]: " ",
["Entrée"]: "Enter", ["Échap."]: "Escape",
["Ret. arrière"]: "Backspace",
["Entrée"]: "Enter",
} }
/* Customize Array to be use as position */ /* Customize Array to be use as position */