diff --git a/src/mouse.cpp b/src/mouse.cpp index a3a5903..ae98c7f 100644 --- a/src/mouse.cpp +++ b/src/mouse.cpp @@ -613,6 +613,8 @@ void GraphicsWindow::MouseRightUp(double x, double y) { AddContextMenuItem("Cut", ContextCommand::CUT_SEL); AddContextMenuItem("Copy", ContextCommand::COPY_SEL); } + } else { + AddContextMenuItem("Select All", ContextCommand::SELECT_ALL); } if((SS.clipboard.r.n > 0 || SS.clipboard.c.n > 0) && LockedInWorkplane()) { @@ -708,6 +710,10 @@ void GraphicsWindow::MouseRightUp(double x, double y) { MenuRequest(Command::CONSTRUCTION); break; + case ContextCommand::SELECT_ALL: + MenuEdit(Command::SELECT_ALL); + break; + case ContextCommand::REMOVE_SPLINE_PT: { hRequest hr = gs.point[0].request(); Request *r = SK.GetRequest(hr); diff --git a/src/ui.h b/src/ui.h index e3e8115..cb7eac6 100644 --- a/src/ui.h +++ b/src/ui.h @@ -140,6 +140,7 @@ enum class ContextCommand : uint32_t { REMOVE_SPLINE_PT, ADD_SPLINE_PT, CONSTRUCTION, + SELECT_ALL, FIRST_STYLE = 0x40000000 };