Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions Source/VirtualTrees.pas
Original file line number Diff line number Diff line change
Expand Up @@ -32861,17 +32861,18 @@ procedure TVTEdit.WMKeyDown(var Message: TWMKeyDown);

// get edit options for column as priority. If column has toDefaultEdit
// use global edit options for tree
Column := Tree.Header.Columns[Tree.FocusedColumn];
if Column.EditOptions <> toDefaultEdit then
EditOptions := Column.EditOptions
else
EditOptions := Tree.TreeOptions.EditOptions;
EditOptions := Tree.TreeOptions.EditOptions; // default
ColumnCandidate := -1;
if Tree.Header.Columns.Count > 0 then // are there any columns?
begin
Column := Tree.Header.Columns[Tree.FocusedColumn];
if Column.EditOptions <> toDefaultEdit then
EditOptions := Column.EditOptions;

// next column candidate for toVerticalEdit and toHorizontalEdit
if Column.EditNextColumn <> -1 then
ColumnCandidate := Column.EditNextColumn
else
ColumnCandidate := -1;
// next column candidate for toVerticalEdit and toHorizontalEdit
if Column.EditNextColumn <> -1 then
ColumnCandidate := Column.EditNextColumn;
end;

case EditOptions of
toDefaultEdit: Tree.SetFocus;
Expand Down