mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-01 06:03:45 +02:00
LCL: grids: partially revert r49016 #2b2ffb7044 that prevents OnSelectEditor when entering cell by keyboard. Issue #29191
git-svn-id: trunk@51286 -
This commit is contained in:
parent
28a686591b
commit
6d831b44de
@ -7179,19 +7179,17 @@ begin
|
||||
FRow := DRow;
|
||||
|
||||
MoveSelection;
|
||||
SelectEditor;
|
||||
|
||||
if EditorAlwaysShown then begin
|
||||
SelectEditor;
|
||||
if (FEditor<>nil) and EditorAlwaysShown then begin
|
||||
// if editor visibility was changed on BeforeMoveSelection or MoveSelection
|
||||
// make sure editor will be updated.
|
||||
// TODO: cell coords of last time editor was visible
|
||||
// could help here too, if they are not the same as the
|
||||
// current cell, editor should be hidden first too.
|
||||
if FEditor<>nil then begin
|
||||
if FEditor.Visible then
|
||||
EditorHide;
|
||||
EditorShow(true);
|
||||
end;
|
||||
if FEditor.Visible then
|
||||
EditorHide;
|
||||
EditorShow(true);
|
||||
end;
|
||||
|
||||
{$IfDef dbgGrid}DebugLnExit('MoveExtend END FCol= ',IntToStr(FCol), ' FRow= ',IntToStr(FRow));{$Endif}
|
||||
|
Loading…
Reference in New Issue
Block a user