mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-30 14:21:19 -07:00
Binds the backspace button to deleteSelection functionality
fixes #CURA-249
This commit is contained in:
parent
58d5487eb9
commit
a7d43efe15
2 changed files with 13 additions and 1 deletions
|
|
@ -22,6 +22,19 @@ UM.MainWindow
|
|||
id: backgroundItem;
|
||||
anchors.fill: parent;
|
||||
UM.I18nCatalog{id: catalog; name:"cura"}
|
||||
|
||||
//DeleteSelection on the keypress backspace event
|
||||
Keys.onPressed: {
|
||||
if (event.key == Qt.Key_Backspace)
|
||||
{
|
||||
if(objectContextMenu.objectId != 0)
|
||||
{
|
||||
Printer.deleteObject(objectContextMenu.objectId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
UM.ApplicationMenu
|
||||
{
|
||||
id: menu
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue