diff --git a/frontend/src/ts/constants/ignored-keys.ts b/frontend/src/ts/constants/ignored-keys.ts index 40680705c726..8ee3e9bbc25c 100644 --- a/frontend/src/ts/constants/ignored-keys.ts +++ b/frontend/src/ts/constants/ignored-keys.ts @@ -5,4 +5,6 @@ export const IgnoredKeys = [ "AudioVolumeUp", "AudioVolumeDown", "AudioVolumeMute", + "Home", + "End", ]; diff --git a/frontend/src/ts/controllers/input-controller.ts b/frontend/src/ts/controllers/input-controller.ts index 5acdae8538ce..d28b4281a6c9 100644 --- a/frontend/src/ts/controllers/input-controller.ts +++ b/frontend/src/ts/controllers/input-controller.ts @@ -904,6 +904,7 @@ $(document).on("keydown", async (event) => { console.debug( `Key ${event.key} is on the list of ignored keys. Stopping keydown event.` ); + event.preventDefault(); return; }