mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 18:59:21 +02:00
SrcEdit: Fix close button on tab. issue #0018038
git-svn-id: trunk@28466 -
This commit is contained in:
parent
04fe47ca23
commit
60b51646df
@ -6529,10 +6529,8 @@ procedure TSourceNotebook.CloseTabClicked(Sender: TObject);
|
|||||||
var
|
var
|
||||||
TabIndex: Integer;
|
TabIndex: Integer;
|
||||||
begin
|
begin
|
||||||
TabIndex:=FNotebook.TabIndex;
|
CloseClicked(Sender,
|
||||||
if TabIndex>=0 then
|
(GetKeyState(VK_CONTROL) < 0) and EditorOpts.CtrlMiddleTabClickClosesOthers);
|
||||||
CloseClicked(NoteBookPage[TabIndex],
|
|
||||||
(GetKeyState(VK_CONTROL) < 0) and EditorOpts.CtrlMiddleTabClickClosesOthers);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TSourceNotebook.GetEditors(Index:integer):TSourceEditor;
|
function TSourceNotebook.GetEditors(Index:integer):TSourceEditor;
|
||||||
|
Loading…
Reference in New Issue
Block a user