WantFocus issue resolved #792

git-svn-id: svn://ultimatepp.org/upp/trunk@7460 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-06-22 07:57:43 +00:00
parent 3dcecb2d72
commit 98f423f33f
4 changed files with 10 additions and 10 deletions

View file

@ -262,7 +262,7 @@ int DocEdit::GetMousePos(Point p)
}
void DocEdit::LeftDown(Point p, dword flags) {
SetWantFocus();
SetFocus();
int c = GetMousePos(p);
int l, h;
if(GetSelection(l, h) && c >= l && c < h) {
@ -278,7 +278,7 @@ void DocEdit::LeftUp(Point p, dword flags)
if(!HasCapture() && selclick) {
int c = GetMousePos(p);
PlaceCaret(c, flags & K_SHIFT);
SetWantFocus();
SetFocus();
}
selclick = false;
}
@ -481,7 +481,7 @@ void DocEdit::RefreshStyle()
void DocEdit::RightDown(Point p, dword w)
{
SetWantFocus();
SetFocus();
int c = GetMousePos(p);
int l, h;
if(!GetSelection(l, h) || c < l || c >= h)