diff --git a/python-backend/config.yml.example b/python-backend/config.yml.example index 6c56b7f..c11f02a 100644 --- a/python-backend/config.yml.example +++ b/python-backend/config.yml.example @@ -136,7 +136,7 @@ general: # auto_off_minutes: 15 # timeout: 5.0 # seconds before a hung command is killed - # The clock overlay (Einfg on the kiosk keyboard, Guide on the remote). Optional; these + # The clock overlay (Pos1 on the kiosk keyboard, Guide on the remote). Optional; these # are the defaults. On school days a bus countdown shows for bus_lead_minutes before # bus_time. School days skip weekends and the school and public holidays of # `subdivision`, fetched daily from openholidaysapi.org and cached under diff --git a/web/src/components/ClockOverlay.tsx b/web/src/components/ClockOverlay.tsx index 62786f0..7534566 100644 --- a/web/src/components/ClockOverlay.tsx +++ b/web/src/components/ClockOverlay.tsx @@ -4,7 +4,7 @@ * minus the mascot swimming through the scene (too distracting for a clock you read * at a glance). * - * Mounted for as long as the app is, and only hidden: Einfg and the remote's Guide key + * Mounted for as long as the app is, and only hidden: Pos1 and the remote's Guide key * have to show it at once, not after a first render. The second ticker only runs while * it is on screen. Any click closes it. */ diff --git a/web/src/lib/__tests__/keyboard.test.ts b/web/src/lib/__tests__/keyboard.test.ts index 7498e84..5098c99 100644 --- a/web/src/lib/__tests__/keyboard.test.ts +++ b/web/src/lib/__tests__/keyboard.test.ts @@ -522,14 +522,14 @@ describe("Del", () => { }); }); -describe("Einfg", () => { +describe("Pos1", () => { it("toggles the clock, on every page", () => { for (const page of ["music", "room", "typing", "parents"] as const) { - expect(press("Insert", { ...initialUiState, page })).toContainEqual({ + expect(press("Home", { ...initialUiState, page })).toContainEqual({ type: "ui", patch: { showClock: true }, }); - expect(press("Insert", { ...initialUiState, page, showClock: true })).toContainEqual({ + expect(press("Home", { ...initialUiState, page, showClock: true })).toContainEqual({ type: "ui", patch: { showClock: false }, }); diff --git a/web/src/lib/keyboard.ts b/web/src/lib/keyboard.ts index 5796a73..7682b90 100644 --- a/web/src/lib/keyboard.ts +++ b/web/src/lib/keyboard.ts @@ -269,9 +269,9 @@ export function handleKey( // another room. if (key === "Delete" && !event.ctrlKey && !event.metaKey) return [{ type: "screen" }]; - // Einfg, right next to it: the clock, over whatever is on screen - the typing tab + // Pos1, in the same block: the clock, over whatever is on screen - the typing tab // included, like Del, since no lesson drills it either. - if (key === "Insert" && !event.ctrlKey && !event.metaKey) { + if (key === "Home" && !event.ctrlKey && !event.metaKey) { return [{ type: "pop", freq: 520 }, { type: "ui", patch: { showClock: !state.showClock } }]; }