mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Open object editor on selected list node on pressing <return>. Fixes issue #1768.
This commit is contained in:
@ -890,6 +890,7 @@ object MainForm: TMainForm
|
||||
OnHeaderClick = vstHeaderClick
|
||||
OnHeaderDraggedOut = vstHeaderDraggedOut
|
||||
OnInitNode = ListTablesInitNode
|
||||
OnKeyPress = ListTablesKeyPress
|
||||
OnNewText = ListTablesNewText
|
||||
Columns = <
|
||||
item
|
||||
|
@ -750,6 +750,7 @@ type
|
||||
procedure editFilterVTRightButtonClick(Sender: TObject);
|
||||
procedure DataGridFocusChanged(Sender: TBaseVirtualTree; Node: PVirtualNode;
|
||||
Column: TColumnIndex);
|
||||
procedure ListTablesKeyPress(Sender: TObject; var Key: Char);
|
||||
private
|
||||
FDelimiter: String;
|
||||
FileNameSessionLog: String;
|
||||
@ -8432,6 +8433,14 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
procedure TMainForm.ListTablesKeyPress(Sender: TObject; var Key: Char);
|
||||
begin
|
||||
// Open object editor on pressing Enter
|
||||
if Ord(Key) = VK_RETURN then
|
||||
ListTables.OnDblClick(Sender);
|
||||
end;
|
||||
|
||||
|
||||
procedure TMainForm.ListTablesDblClick(Sender: TObject);
|
||||
var
|
||||
Obj: PDBObject;
|
||||
|
Reference in New Issue
Block a user