mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
WantFocus issue resolved #792
git-svn-id: svn://ultimatepp.org/upp/trunk@7460 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3dcecb2d72
commit
98f423f33f
4 changed files with 10 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue