fix: crash when holding shift + arrow down then arrow up in last row of data grid

Closes #1451
This commit is contained in:
Ansgar Becker
2026-02-26 18:56:44 +01:00
parent 9fb90d1fcb
commit 7d828d26b2

View File

@@ -10921,9 +10921,9 @@ begin
Key := 0;
end;
end;
VK_RETURN: if Assigned(g.FocusedNode) then g.EditNode(g.FocusedNode, g.FocusedColumn);
VK_DOWN: if g.FocusedNode = g.GetLast then actDataInsertExecute(actDataInsert);
VK_NEXT: if (g = DataGrid) and (g.FocusedNode = g.GetLast) then actDataShowNext.Execute;
VK_RETURN: if Assigned(g.FocusedNode) and (Shift=[]) then g.EditNode(g.FocusedNode, g.FocusedColumn);
VK_DOWN: if (g.FocusedNode = g.GetLast) and (Shift=[]) then actDataInsertExecute(actDataInsert);
VK_NEXT: if (g = DataGrid) and (g.FocusedNode = g.GetLast) and (Shift=[]) then actDataShowNext.Execute;
end;
end;