Multiply dialog now has focus on #, added shortcut Ctrl-M

This commit is contained in:
Jack Ha 2017-05-04 16:31:33 +02:00
parent 51b76acc6d
commit 0b0011fc88
2 changed files with 7 additions and 0 deletions

View file

@ -205,6 +205,7 @@ Item
text: catalog.i18ncp("@action:inmenu menubar:edit", "Multiply Selected Model", "Multiply Selected Models", UM.Selection.selectionCount);
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection;
iconName: "edit-duplicate";
shortcut: "Ctrl+M"
}
Action

6
resources/qml/Menus/ContextMenu.qml Normal file → Executable file
View file

@ -93,6 +93,11 @@ Menu
copiesField.focus = true;
}
onVisibleChanged:
{
copiesField.forceActiveFocus();
}
standardButtons: StandardButton.Ok | StandardButton.Cancel
Row
@ -108,6 +113,7 @@ Menu
SpinBox
{
id: copiesField
focus: true
minimumValue: 1
maximumValue: 99
}