mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 05:07:56 +02:00
IDE: close source editor window manager with Esc key. Issue #25684.
git-svn-id: trunk@43944 -
This commit is contained in:
parent
a35e939108
commit
2a4cc692f8
@ -7,9 +7,11 @@ object EditorFileManagerForm: TEditorFileManagerForm
|
||||
Caption = 'EditorFileManagerForm'
|
||||
ClientHeight = 380
|
||||
ClientWidth = 722
|
||||
KeyPreview = True
|
||||
OnCreate = FormCreate
|
||||
OnKeyDown = FormKeyDown
|
||||
Position = poScreenCenter
|
||||
LCLVersion = '1.1'
|
||||
LCLVersion = '1.3'
|
||||
object CheckListBox1: TCheckListBox
|
||||
AnchorSideTop.Control = FilterPanel
|
||||
AnchorSideTop.Side = asrBottom
|
||||
@ -29,7 +31,6 @@ object EditorFileManagerForm: TEditorFileManagerForm
|
||||
OnKeyDown = CheckListBox1KeyDown
|
||||
PopupMenu = PopupMenu1
|
||||
TabOrder = 0
|
||||
TopIndex = -1
|
||||
end
|
||||
object ButtonPanel1: TButtonPanel
|
||||
Left = 6
|
||||
|
@ -38,6 +38,7 @@ type
|
||||
procedure CheckListBox1KeyPress(Sender: TObject; var Key: char);
|
||||
procedure CloseButtonClick(Sender: TObject);
|
||||
procedure DoEditorsChanged(Sender: TObject);
|
||||
procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
|
||||
procedure HelpButtonClick(Sender: TObject);
|
||||
procedure MoveDownBtnClick(Sender: TObject);
|
||||
procedure MoveUpBtnClick(Sender: TObject);
|
||||
@ -253,6 +254,12 @@ begin
|
||||
PopulateList;
|
||||
end;
|
||||
|
||||
procedure TEditorFileManagerForm.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
|
||||
begin
|
||||
if (Key = VK_ESCAPE) and (Shift = []) then
|
||||
Close;
|
||||
end;
|
||||
|
||||
procedure TEditorFileManagerForm.HelpButtonClick(Sender: TObject);
|
||||
begin
|
||||
LazarusHelp.ShowHelpForIDEControl(Self);
|
||||
|
Loading…
Reference in New Issue
Block a user