mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add CTRL+P shortcut for save/print button
CURA-3496
This commit is contained in:
parent
6858db5e17
commit
139bb76806
1 changed files with 7 additions and 1 deletions
|
|
@ -76,6 +76,12 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Shortcut for "save as/print/..."
|
||||||
|
Action {
|
||||||
|
shortcut: "Ctrl+P"
|
||||||
|
onTriggered: saveToButton.clicked()
|
||||||
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: saveRow
|
id: saveRow
|
||||||
width: base.width
|
width: base.width
|
||||||
|
|
@ -212,7 +218,7 @@ Item {
|
||||||
anchors.right: deviceSelectionMenu.visible ? deviceSelectionMenu.left : parent.right
|
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
|
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:
|
onClicked:
|
||||||
{
|
{
|
||||||
UM.OutputDeviceManager.requestWriteToDevice(UM.OutputDeviceManager.activeDevice, PrintInformation.jobName, { "filter_by_machine": true, "preferred_mimetype":Printer.preferredOutputMimetype })
|
UM.OutputDeviceManager.requestWriteToDevice(UM.OutputDeviceManager.activeDevice, PrintInformation.jobName, { "filter_by_machine": true, "preferred_mimetype":Printer.preferredOutputMimetype })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue