diff --git a/qt/aqt/data/web/js/editor.ts b/qt/aqt/data/web/js/editor.ts index 750363def..7eafd2abb 100644 --- a/qt/aqt/data/web/js/editor.ts +++ b/qt/aqt/data/web/js/editor.ts @@ -210,10 +210,6 @@ function onFocus(elem: HTMLElement): void { currentField = elem; pycmd(`focus:${currentFieldOrdinal()}`); enableButtons(); - // don't adjust cursor on mouse clicks - if (mouseDown) { - return; - } // do this twice so that there's no flicker on newer versions caretToEnd(); // scroll if bottom of element off the screen @@ -622,13 +618,6 @@ let adjustFieldsTopMargin = function (): void { let mouseDown = 0; $(function (): void { - document.body.addEventListener("mousedown", (): void => { - mouseDown++; - }); - document.body.addEventListener("mouseup", (): void => { - mouseDown--; - }); - document.addEventListener("click", (evt: MouseEvent): void => { const src = evt.target as Element; if (src.tagName === "IMG") {