From acbc6893f5cc6f449e3d7d7531472c03331bfcea Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 2 Mar 2018 14:51:13 +0100 Subject: [PATCH] Also allow backspace to delete models See the documentation in the code as to why. Macintosh keyboards... Fixes #3257. --- resources/qml/Actions.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resources/qml/Actions.qml b/resources/qml/Actions.qml index aade7c6053..819edb1fc4 100644 --- a/resources/qml/Actions.qml +++ b/resources/qml/Actions.qml @@ -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;