Also allow backspace to delete models

See the documentation in the code as to why. Macintosh keyboards...

Fixes #3257.
This commit is contained in:
Ghostkeeper 2018-03-02 14:51:13 +01:00
parent 1743954ef7
commit acbc6893f5
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -236,6 +236,16 @@ Item
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
{
id: centerSelectionAction;