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]
This commit is contained in:
parent
0f8c303b2e
commit
5302aad1cc
|
@ -762,7 +762,12 @@ bool GraphicsWindow::ConstrainPointByHovered(hEntity pt) {
|
||||||
void GraphicsWindow::MouseLeftDown(double mx, double my) {
|
void GraphicsWindow::MouseLeftDown(double mx, double my) {
|
||||||
orig.mouseDown = true;
|
orig.mouseDown = true;
|
||||||
|
|
||||||
if(GraphicsEditControlIsVisible()) return;
|
if(GraphicsEditControlIsVisible()) {
|
||||||
|
orig.mouse = Point2d::From(mx, my);
|
||||||
|
orig.mouseOnButtonDown = orig.mouse;
|
||||||
|
HideGraphicsEditControl();
|
||||||
|
return;
|
||||||
|
}
|
||||||
HideTextEditControl();
|
HideTextEditControl();
|
||||||
|
|
||||||
if(SS.showToolbar) {
|
if(SS.showToolbar) {
|
||||||
|
|
|
@ -432,7 +432,12 @@ LRESULT CALLBACK TextWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
case WM_LBUTTONDOWN:
|
case WM_LBUTTONDOWN:
|
||||||
case WM_MOUSEMOVE: {
|
case WM_MOUSEMOVE: {
|
||||||
if(TextEditControlIsVisible() || GraphicsEditControlIsVisible()) {
|
if(TextEditControlIsVisible() || GraphicsEditControlIsVisible()) {
|
||||||
|
if(msg == WM_MOUSEMOVE) {
|
||||||
SetCursor(LoadCursor(NULL, IDC_ARROW));
|
SetCursor(LoadCursor(NULL, IDC_ARROW));
|
||||||
|
} else {
|
||||||
|
HideTextEditControl();
|
||||||
|
HideGraphicsEditControl();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
GraphicsWindow::Selection ps = SS.GW.hover;
|
GraphicsWindow::Selection ps = SS.GW.hover;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user