编辑器

优化查找输入细节
This commit is contained in:
JianjunLiu 2023-03-14 10:27:40 +08:00
parent 946df3c42b
commit 73ad8b3530
3 changed files with 11 additions and 5 deletions

View File

@ -5191,15 +5191,17 @@ type TFindWnd=class(TPage)
begin begin
s := s1; s := s1;
end else end else
s := it.CaretWords(); s := it.CaretWords();
if s then SetFindText(s); SetFindText(s);
FEdit_target.Editer.SetFocus(); FEdit_target.Editer.SetFocus();
end end
inherited; inherited;
end end
Function SetFindText(s); //设置查找的字符串 Function SetFindText(s); //设置查找的字符串
begin begin
FEdit_target.Editer.Text := s; if s then
FEdit_target.Editer.Text := s;
else s := FEdit_target.Editer.Text;
FEdit_target.Editer.SetSel(0,length(s)); FEdit_target.Editer.SetSel(0,length(s));
end end
function SaveCurrentEditer(); //保存一下数据 function SaveCurrentEditer(); //保存一下数据

View File

@ -4617,8 +4617,11 @@ type tenterouterlist = class
begin begin
FIndex := -1; FIndex := -1;
FList := array(); FList := array();
FTimer.stop(); if FTimer then
FTimer := nil; begin
FTimer.stop();
FTimer := nil;
end
end end
Mousemovecall; Mousemovecall;
Mousehittest; Mousehittest;
@ -4628,6 +4631,7 @@ type tenterouterlist = class
FLock; FLock;
FIndex ; FIndex ;
FList; FList;
FTimer; //20230314 ÐÞÕý´Ë´¦ÎÊÌâ
end end
type tgtk_ctl_object = class(_gtkeventtype) type tgtk_ctl_object = class(_gtkeventtype)
private private

Binary file not shown.