mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 05:39:34 +01:00 
			
		
		
		
	IconFinder: Avoid closing the IDE options dialog when the user presses ENTER after typing a search phrase.
This commit is contained in:
		
							parent
							
								
									816d1b0cd5
								
							
						
					
					
						commit
						b7f4fd1d74
					
				@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user