webedit style losed after selstart

function SetStyle (qid, qtyleVar, qstyleValue : string) : boolean;
begin
asm
document.getElementById(qid).style[ qtyleVar ] = qstyleValue ;
end;
result := true;
end;

1- SetStyle(form1.webedit1.ElementID, 'outline','none');
work fine

2- but when i selstart , webedit1 lose the proprety (outline:none)
form1.ed1.SelStart := 1;

There is a property for this: set ShowFocus = false

yes with ShowFocus is better.
Thank you

90% of my applications are now webapp.
WebCore is great.

2 Likes