diff --git a/qt/aqt/data/web/js/editor.ts b/qt/aqt/data/web/js/editor.ts index 0e74bdea7..a22b699ed 100644 --- a/qt/aqt/data/web/js/editor.ts +++ b/qt/aqt/data/web/js/editor.ts @@ -606,17 +606,3 @@ let filterNode = function (node: Node, extendedMode: boolean): void { } } }; - -document.addEventListener("click", (evt: MouseEvent): void => { - const src = evt.target as Element; - if (src.tagName === "IMG") { - // image clicked; find contenteditable parent - let p = src; - while ((p = p.parentNode as Element)) { - if (p.className === "field") { - document.getElementById(p.id).focus(); - break; - } - } - } -});