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:
ondrej 2016-01-14 17:00:34 +00:00
parent 28a686591b
commit 6d831b44de

View File

@ -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}