diff options
-rw-r--r-- | frontend/src/ts/constants/ignored-keys.ts | 2 | ||||
-rw-r--r-- | frontend/src/ts/controllers/input-controller.ts | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/frontend/src/ts/constants/ignored-keys.ts b/frontend/src/ts/constants/ignored-keys.ts index 40680705c..8ee3e9bbc 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 5acdae853..d28b4281a 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; } |