IconFinder: Avoid closing the IDE options dialog when the user presses ENTER after typing a search phrase.

(cherry picked from commit b7f4fd1d74)
This commit is contained in:
wp_xyz 2024-11-14 23:48:17 +01:00
parent 88f3d577c7
commit 6620e22730

View File

@ -76,6 +76,7 @@ type
public
constructor Create(TheOwner: TComponent); override;
destructor Destroy; override;
function Check: Boolean; override;
function GetTitle: String; override;
procedure ReadSettings({%H-}AOptions: TAbstractIDEOptions); override;
procedure Setup({%H-}ADialog: TAbstractOptionsEditorDialog); override;
@ -174,6 +175,11 @@ begin
AForm.SetBounds(P.X, P.Y, AForm.Width, AForm.Height);
end;
function TIconFinderSettingsFrame.Check: Boolean;
begin
Result := not FViewer.cmbFilterByKeywords.Focused;
end;
procedure TIconFinderSettingsFrame.EditFolders;
var
F: TIconFolderForm;