mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-24 21:19:14 +02:00
LCL, fix moving dbgrid selected field to the last one while using 'END' key and there are invisible columns, Problem 3) issue #19993
git-svn-id: trunk@39317 -
This commit is contained in:
parent
0d8b603ec0
commit
c02a423ee9
@ -2229,8 +2229,11 @@ begin
|
|||||||
GridFlags := GridFlags + [gfEditingDone];
|
GridFlags := GridFlags + [gfEditingDone];
|
||||||
if ssCTRL in shift then
|
if ssCTRL in shift then
|
||||||
FDatalink.DataSet.Last
|
FDatalink.DataSet.Last
|
||||||
else
|
else begin
|
||||||
MoveNextSelectable(False, ColCount-1, Row);
|
DeltaCol := GetLastVisibleColumn;
|
||||||
|
if DeltaCol>=0 then
|
||||||
|
MoveNextSelectable(False, DeltaCol, Row);
|
||||||
|
end;
|
||||||
GridFlags := GridFlags - [gfEditingDone];
|
GridFlags := GridFlags - [gfEditingDone];
|
||||||
ClearSelection(true);
|
ClearSelection(true);
|
||||||
Key:=0;
|
Key:=0;
|
||||||
|
Loading…
Reference in New Issue
Block a user