Skip to content

Commit 7d828d2

Browse files
committed
fix: crash when holding shift + arrow down then arrow up in last row of data grid
Closes #1451
1 parent 9fb90d1 commit 7d828d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/main.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10921,9 +10921,9 @@ procedure TMainForm.AnyGridKeyDown(Sender: TObject; var Key: Word; Shift: TShift
1092110921
Key := 0;
1092210922
end;
1092310923
end;
10924-
VK_RETURN: if Assigned(g.FocusedNode) then g.EditNode(g.FocusedNode, g.FocusedColumn);
10925-
VK_DOWN: if g.FocusedNode = g.GetLast then actDataInsertExecute(actDataInsert);
10926-
VK_NEXT: if (g = DataGrid) and (g.FocusedNode = g.GetLast) then actDataShowNext.Execute;
10924+
VK_RETURN: if Assigned(g.FocusedNode) and (Shift=[]) then g.EditNode(g.FocusedNode, g.FocusedColumn);
10925+
VK_DOWN: if (g.FocusedNode = g.GetLast) and (Shift=[]) then actDataInsertExecute(actDataInsert);
10926+
VK_NEXT: if (g = DataGrid) and (g.FocusedNode = g.GetLast) and (Shift=[]) then actDataShowNext.Execute;
1092710927
end;
1092810928
end;
1092910929

0 commit comments

Comments
 (0)