From 0d005db507effc0003cb265dcad3334b4b04f16b Mon Sep 17 00:00:00 2001 From: bart <9132501-flyingsheep@users.noreply.gitlab.com> Date: Tue, 22 May 2012 22:39:20 +0000 Subject: [PATCH] Select cell when it's content is deleted by VK_Delete git-svn-id: trunk@37399 - --- lcl/grids.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lcl/grids.pas b/lcl/grids.pas index 79649e92e0..fc1f05fb2c 100644 --- a/lcl/grids.pas +++ b/lcl/grids.pas @@ -6625,11 +6625,11 @@ begin if not FEditorKey and EditingAllowed(FCol) and (Editor is TCustomEdit) and not (csDesigning in ComponentState) then begin - EditorShow(True); + EditorShow(False); TCustomEdit(Editor).Text:=''; - ResetEditor; InvalidateCell(FCol,FRow,True); - SelectCell(FCol,FRow); // This does not really select the cell. Why? + EditorShow(True); + Key := 0; end; end; if FEditorKey then