From 1b424becba28a0e0a89d426aa4ee57ed970a39cd Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 17 Jun 2014 13:30:27 +0000 Subject: [PATCH] CtrlLib: RichTextView: reverted to SetFocus git-svn-id: svn://ultimatepp.org/upp/trunk@7454 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/RichTextView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uppsrc/CtrlLib/RichTextView.cpp b/uppsrc/CtrlLib/RichTextView.cpp index 6538a951e..7325d69b4 100644 --- a/uppsrc/CtrlLib/RichTextView.cpp +++ b/uppsrc/CtrlLib/RichTextView.cpp @@ -195,7 +195,7 @@ void RichTextView::LeftDown(Point p, dword keyflags) if(!(keyflags & K_SHIFT)) anchor = pos; RefreshSel(); - SetWantFocus(); + SetFocus(); SetCapture(); } } @@ -213,7 +213,7 @@ void RichTextView::LeftDouble(Point p, dword keyflags) while(cursor < text.GetLength() && text[cursor] == ' ') cursor++; RefreshSel(); - SetWantFocus(); + SetFocus(); } } @@ -224,7 +224,7 @@ void RichTextView::LeftTriple(Point p, dword keyflags) anchor = pos - rp.posinpara; cursor = anchor + rp.paralen + 1; RefreshSel(); - SetWantFocus(); + SetFocus(); } void RichTextView::MouseMove(Point p, dword keyflags)