Browse Source

Fix pressing backspace in the search box deleting an entity

master
Fen Dweller 3 years ago
parent
commit
59920cc288
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      macrovision.js

+ 4
- 0
macrovision.js View File

@@ -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 = () => {


Loading…
Cancel
Save