Use enums in more places (after last merge with main), fix ts errors, better comments

This commit is contained in:
VariableVince
2026-05-18 19:48:44 +02:00
parent 747da28a0d
commit fec6709c10
3 changed files with 15 additions and 12 deletions
+2 -2
View File
@@ -513,7 +513,7 @@ describe("InputHandler AutoUpgrade", () => {
expect((inputHandler as any).keybinds.moveUp).toBe("KeyX");
});
test("ignores non-string values and preserves defaults, removes KeyUnbound keys", () => {
test("ignores non-string values and preserves defaults, removes 'Null' keys", () => {
const mixed = {
moveUp: { key: "moveUp", value: null },
moveLeft: KeyUnbound,
@@ -523,7 +523,7 @@ describe("InputHandler AutoUpgrade", () => {
inputHandler.initialize();
expect((inputHandler as any).keybinds.moveUp).toBe("KeyW");
// KeyUnbound entries are removed entirely to indicate unbound keybind
// "Null" entries are removed entirely to indicate unbound keybind
expect((inputHandler as any).keybinds.moveLeft).toBeUndefined();
});