mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 21:09:00 +08:00
Multiply dialog now has focus on #, added shortcut Ctrl-M
This commit is contained in:
parent
51b76acc6d
commit
0b0011fc88
@ -205,6 +205,7 @@ Item
|
|||||||
text: catalog.i18ncp("@action:inmenu menubar:edit", "Multiply Selected Model", "Multiply Selected Models", UM.Selection.selectionCount);
|
text: catalog.i18ncp("@action:inmenu menubar:edit", "Multiply Selected Model", "Multiply Selected Models", UM.Selection.selectionCount);
|
||||||
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection;
|
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection;
|
||||||
iconName: "edit-duplicate";
|
iconName: "edit-duplicate";
|
||||||
|
shortcut: "Ctrl+M"
|
||||||
}
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
|
6
resources/qml/Menus/ContextMenu.qml
Normal file → Executable file
6
resources/qml/Menus/ContextMenu.qml
Normal file → Executable file
@ -93,6 +93,11 @@ Menu
|
|||||||
copiesField.focus = true;
|
copiesField.focus = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onVisibleChanged:
|
||||||
|
{
|
||||||
|
copiesField.forceActiveFocus();
|
||||||
|
}
|
||||||
|
|
||||||
standardButtons: StandardButton.Ok | StandardButton.Cancel
|
standardButtons: StandardButton.Ok | StandardButton.Cancel
|
||||||
|
|
||||||
Row
|
Row
|
||||||
@ -108,6 +113,7 @@ Menu
|
|||||||
SpinBox
|
SpinBox
|
||||||
{
|
{
|
||||||
id: copiesField
|
id: copiesField
|
||||||
|
focus: true
|
||||||
minimumValue: 1
|
minimumValue: 1
|
||||||
maximumValue: 99
|
maximumValue: 99
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user