Hide the text or graphics edit control when the user left-clicks
somewhere in the text or graphics window. Previously, those left-clicks just did nothing. [git-p4: depot-paths = "//depot/solvespace/": change = 2100]solver
parent
0f8c303b2e
commit
5302aad1cc
|
@ -762,7 +762,12 @@ bool GraphicsWindow::ConstrainPointByHovered(hEntity pt) {
|
|||
void GraphicsWindow::MouseLeftDown(double mx, double my) {
|
||||
orig.mouseDown = true;
|
||||
|
||||
if(GraphicsEditControlIsVisible()) return;
|
||||
if(GraphicsEditControlIsVisible()) {
|
||||
orig.mouse = Point2d::From(mx, my);
|
||||
orig.mouseOnButtonDown = orig.mouse;
|
||||
HideGraphicsEditControl();
|
||||
return;
|
||||
}
|
||||
HideTextEditControl();
|
||||
|
||||
if(SS.showToolbar) {
|
||||
|
|
|
@ -432,7 +432,12 @@ LRESULT CALLBACK TextWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
case WM_LBUTTONDOWN:
|
||||
case WM_MOUSEMOVE: {
|
||||
if(TextEditControlIsVisible() || GraphicsEditControlIsVisible()) {
|
||||
SetCursor(LoadCursor(NULL, IDC_ARROW));
|
||||
if(msg == WM_MOUSEMOVE) {
|
||||
SetCursor(LoadCursor(NULL, IDC_ARROW));
|
||||
} else {
|
||||
HideTextEditControl();
|
||||
HideGraphicsEditControl();
|
||||
}
|
||||
break;
|
||||
}
|
||||
GraphicsWindow::Selection ps = SS.GW.hover;
|
||||
|
|
Loading…
Reference in New Issue