From 3828c43cd8b546fbbe4ae52f9f03ec0fea923cb8 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 7 Apr 2012 18:01:03 +0900 Subject: [PATCH] add the timeout back in for older qt versions --- aqt/editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/editor.py b/aqt/editor.py index e7560fce8..a22b233aa 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -97,8 +97,8 @@ function onFocus(elem) { py.run("focus:" + currentField.id.substring(1)); // don't adjust cursor on mouse clicks if (mouseDown) { return; } - // move cursor - caretToEnd(); + // need to do this in a timeout for older qt versions + setTimeout(function () { caretToEnd() }, 1); // scroll if bottom of element off the screen function pos(obj) { var cur = 0;