From 139bb768063d54444ee60c439db5cce48abb0323 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Tue, 21 Mar 2017 09:27:58 +0100 Subject: [PATCH] Add CTRL+P shortcut for save/print button CURA-3496 --- resources/qml/SaveButton.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/qml/SaveButton.qml b/resources/qml/SaveButton.qml index fef4f3780d..16316b000e 100644 --- a/resources/qml/SaveButton.qml +++ b/resources/qml/SaveButton.qml @@ -76,6 +76,12 @@ Item { } } + // Shortcut for "save as/print/..." + Action { + shortcut: "Ctrl+P" + onTriggered: saveToButton.clicked() + } + Item { id: saveRow width: base.width @@ -212,7 +218,7 @@ Item { anchors.right: deviceSelectionMenu.visible ? deviceSelectionMenu.left : parent.right anchors.rightMargin: deviceSelectionMenu.visible ? -3 * UM.Theme.getSize("default_lining").width : UM.Theme.getSize("default_margin").width - text: UM.OutputDeviceManager.activeDeviceShortDescription + text: UM.OutputDeviceManager.activeDeviceShortDescription + " (CTRL+P)" onClicked: { UM.OutputDeviceManager.requestWriteToDevice(UM.OutputDeviceManager.activeDevice, PrintInformation.jobName, { "filter_by_machine": true, "preferred_mimetype":Printer.preferredOutputMimetype })