diff --git a/reactos/subsys/system/regedit/hexedit.c b/reactos/subsys/system/regedit/hexedit.c index 332a937e372..edec6af814f 100644 --- a/reactos/subsys/system/regedit/hexedit.c +++ b/reactos/subsys/system/regedit/hexedit.c @@ -748,10 +748,12 @@ HEXEDIT_WM_LBUTTONDOWN(PHEXEDIT_DATA hed, INT Buttons, POINTS Pt) POINT EditPos; DWORD Hit = HEXEDIT_HitRegionTest(hed, Pt); + SetFocus(hed->hWndSelf); + hed->Position = HEXEDIT_PositionFromPoint(hed, Pt, Hit, &EditPos, &NewField); hed->EditingField = NewField; hed->CaretCol = EditPos.x; - hed->CaretLine = EditPos.y; + hed->CaretLine = EditPos.y; HEXEDIT_MoveCaret(hed, TRUE);