From 59920cc288f084e9dc87c9de548b4ebbce47ca85 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 29 Jan 2022 17:14:20 -0500 Subject: [PATCH] Fix pressing backspace in the search box deleting an entity --- macrovision.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/macrovision.js b/macrovision.js index 703c6c8f..4ede3471 100644 --- a/macrovision.js +++ b/macrovision.js @@ -4912,6 +4912,10 @@ document.addEventListener("DOMContentLoaded", () => { .querySelector("#search-box") .addEventListener("change", (e) => doSearch(e.target.value)); + + document + .querySelector("#search-box") + .addEventListener("keydown", e => e.stopPropagation()); // Webkit doesn't draw resized SVGs correctly. It will always draw them at their intrinsic size, I think // This checks for that. webkitBugTest.onload = () => {