mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 01:35:53 +08:00
Add CTRL+P shortcut for save/print button
CURA-3496
This commit is contained in:
parent
6858db5e17
commit
139bb76806
@ -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…
x
Reference in New Issue
Block a user