mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 11:59:02 +08:00
Remove double keys from right click menu, remove backspaceSelectionAction because not used
CURA-5642
This commit is contained in:
parent
9bcc8ffff6
commit
149a47e5a7
@ -110,28 +110,28 @@ Item
|
|||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: view3DCameraAction;
|
id: view3DCameraAction;
|
||||||
text: catalog.i18nc("@action:inmenu menubar:view","&3D View");
|
text: catalog.i18nc("@action:inmenu menubar:view","3D View");
|
||||||
onTriggered: UM.Controller.rotateView("3d", 0);
|
onTriggered: UM.Controller.rotateView("3d", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: viewFrontCameraAction;
|
id: viewFrontCameraAction;
|
||||||
text: catalog.i18nc("@action:inmenu menubar:view","&Front View");
|
text: catalog.i18nc("@action:inmenu menubar:view","Front View");
|
||||||
onTriggered: UM.Controller.rotateView("home", 0);
|
onTriggered: UM.Controller.rotateView("home", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: viewTopCameraAction;
|
id: viewTopCameraAction;
|
||||||
text: catalog.i18nc("@action:inmenu menubar:view","&Top View");
|
text: catalog.i18nc("@action:inmenu menubar:view","Top View");
|
||||||
onTriggered: UM.Controller.rotateView("y", 90);
|
onTriggered: UM.Controller.rotateView("y", 90);
|
||||||
}
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: viewLeftSideCameraAction;
|
id: viewLeftSideCameraAction;
|
||||||
text: catalog.i18nc("@action:inmenu menubar:view","&Left Side View");
|
text: catalog.i18nc("@action:inmenu menubar:view","Left Side View");
|
||||||
onTriggered: UM.Controller.rotateView("x", 90);
|
onTriggered: UM.Controller.rotateView("x", 90);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -229,23 +229,13 @@ Item
|
|||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: deleteSelectionAction;
|
id: deleteSelectionAction;
|
||||||
text: catalog.i18ncp("@action:inmenu menubar:edit", "Delete &Selected Model", "Delete &Selected Models", UM.Selection.selectionCount);
|
text: catalog.i18ncp("@action:inmenu menubar:edit", "Delete Selected Model", "Delete Selected Models", UM.Selection.selectionCount);
|
||||||
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection;
|
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection;
|
||||||
iconName: "edit-delete";
|
iconName: "edit-delete";
|
||||||
shortcut: StandardKey.Delete;
|
shortcut: StandardKey.Delete;
|
||||||
onTriggered: CuraActions.deleteSelection();
|
onTriggered: CuraActions.deleteSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
Action //Also add backspace as the same function as delete because on Macintosh keyboards the button called "delete" is actually a backspace, and the user expects it to function as a delete.
|
|
||||||
{
|
|
||||||
id: backspaceSelectionAction
|
|
||||||
text: catalog.i18ncp("@action:inmenu menubar:edit", "Delete &Selected Model", "Delete &Selected Models", UM.Selection.selectionCount)
|
|
||||||
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection
|
|
||||||
iconName: "edit-delete"
|
|
||||||
shortcut: StandardKey.Backspace
|
|
||||||
onTriggered: CuraActions.deleteSelection()
|
|
||||||
}
|
|
||||||
|
|
||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: centerSelectionAction;
|
id: centerSelectionAction;
|
||||||
@ -328,7 +318,7 @@ Item
|
|||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: selectAllAction;
|
id: selectAllAction;
|
||||||
text: catalog.i18nc("@action:inmenu menubar:edit","&Select All Models");
|
text: catalog.i18nc("@action:inmenu menubar:edit","Select All Models");
|
||||||
enabled: UM.Controller.toolsEnabled;
|
enabled: UM.Controller.toolsEnabled;
|
||||||
iconName: "edit-select-all";
|
iconName: "edit-select-all";
|
||||||
shortcut: "Ctrl+A";
|
shortcut: "Ctrl+A";
|
||||||
@ -338,7 +328,7 @@ Item
|
|||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: deleteAllAction;
|
id: deleteAllAction;
|
||||||
text: catalog.i18nc("@action:inmenu menubar:edit","&Clear Build Plate");
|
text: catalog.i18nc("@action:inmenu menubar:edit","Clear Build Plate");
|
||||||
enabled: UM.Controller.toolsEnabled;
|
enabled: UM.Controller.toolsEnabled;
|
||||||
iconName: "edit-delete";
|
iconName: "edit-delete";
|
||||||
shortcut: "Ctrl+D";
|
shortcut: "Ctrl+D";
|
||||||
@ -348,7 +338,7 @@ Item
|
|||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: reloadAllAction;
|
id: reloadAllAction;
|
||||||
text: catalog.i18nc("@action:inmenu menubar:file","Re&load All Models");
|
text: catalog.i18nc("@action:inmenu menubar:file","Reload All Models");
|
||||||
iconName: "document-revert";
|
iconName: "document-revert";
|
||||||
shortcut: "F5"
|
shortcut: "F5"
|
||||||
onTriggered: CuraApplication.reloadAll();
|
onTriggered: CuraApplication.reloadAll();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user