Fixed error being logged in the console on scriptless pages when hitting [Delete] or [Backspace] (thanks barbaz for reporting).
This commit is contained in:
parent
74c8e14cc3
commit
ee876f67c8
|
@ -60,7 +60,7 @@ function onScriptDisabled() {
|
|||
addEventListener("keyup", ev => {
|
||||
if (!ev.isTrusted) return;
|
||||
let el = eraser.tapped;
|
||||
if (el && ev.code === "Delete" || ev.code === "Backspace") {
|
||||
if (el && (ev.code === "Delete" || ev.code === "Backspace")) {
|
||||
eraser.tapped = null;
|
||||
eraser.delKey = true;
|
||||
let doc = el.ownerDocument;
|
||||
|
|
Loading…
Reference in New Issue