Add "Select All" to context menu for no selection.
parent
2f4c6a6b0e
commit
2f64f18095
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue