Select cell when it's content is deleted by VK_Delete

git-svn-id: trunk@37399 -
This commit is contained in:
bart 2012-05-22 22:39:20 +00:00
parent 3a65d68767
commit 0d005db507

View File

@ -6625,11 +6625,11 @@ begin
if not FEditorKey and EditingAllowed(FCol) if not FEditorKey and EditingAllowed(FCol)
and (Editor is TCustomEdit) and not (csDesigning in ComponentState) and (Editor is TCustomEdit) and not (csDesigning in ComponentState)
then begin then begin
EditorShow(True); EditorShow(False);
TCustomEdit(Editor).Text:=''; TCustomEdit(Editor).Text:='';
ResetEditor;
InvalidateCell(FCol,FRow,True); InvalidateCell(FCol,FRow,True);
SelectCell(FCol,FRow); // This does not really select the cell. Why? EditorShow(True);
Key := 0;
end; end;
end; end;
if FEditorKey then if FEditorKey then