mirror of https://gitlab.com/basile.b/dexed.git
find, always set the focus on the text field
This commit is contained in:
parent
af5c39689f
commit
91c4e64078
|
@ -2392,18 +2392,21 @@ var
|
|||
win: TAnchorDockHostSite;
|
||||
str: string;
|
||||
begin
|
||||
if fDoc.isNil then
|
||||
exit;
|
||||
win := DockMaster.GetAnchorSite(fFindWidg);
|
||||
if win.isNil then exit;
|
||||
if win.isNil then
|
||||
exit;
|
||||
win.Show;
|
||||
win.BringToFront;
|
||||
if fDoc.isNil then exit;
|
||||
//
|
||||
|
||||
if fDoc.SelAvail then
|
||||
str := fDoc.SelText
|
||||
else
|
||||
str := fDoc.Identifier;
|
||||
ffindwidg.cbToFind.Text := str;
|
||||
ffindwidg.cbToFindChange(nil);
|
||||
ffindwidg.cbToFind.SetFocus;
|
||||
end;
|
||||
|
||||
procedure TCEMainForm.actEdFindNextExecute(Sender: TObject);
|
||||
|
|
Loading…
Reference in New Issue