From cbc8d8c68504aeedfe5cefbdf00e22965128a0e4 Mon Sep 17 00:00:00 2001 From: rich2014 Date: Thu, 20 Jun 2024 21:33:20 +0800 Subject: [PATCH] IDE: fix the issue that ProjectInspector would be closed even if it was Docked when pressing ESCAPE --- ide/projectinspector.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ide/projectinspector.pas b/ide/projectinspector.pas index 42d143fcc9..f8fb65a62e 100644 --- a/ide/projectinspector.pas +++ b/ide/projectinspector.pas @@ -566,7 +566,7 @@ begin Handled := True; try if Key = VK_ESCAPE then - Close + begin if NOT self.Docked then Close end else if Key = VK_RETURN then OpenButtonClick(Nil) else if Key = VK_DELETE then