Browse Source

Adds the backspace as a schortcut to trigger the delete object action.

This StandardKey only works for MacOS, for more info see http://doc.qt.io/QtVirtualKeyboard/qml-qtquick-enterprise-virtualkeyboard-backspacekey.html

fixes #237
Tamara Hogenhout 9 years ago
parent
commit
29c307f364
1 changed files with 2 additions and 1 deletions
  1. 2 1
      resources/qml/Actions.qml

+ 2 - 1
resources/qml/Actions.qml

@@ -119,6 +119,7 @@ Item {
         //: Delete object action
         text: qsTr("Delete Object");
         iconName: "edit-delete";
+        shortcut: StandardKey.Backspace;
     }
 
     Action {
@@ -126,7 +127,7 @@ Item {
         //: Center object action
         text: qsTr("Center Object on Platform");
     }
-    
+
     Action
     {
         id: groupObjectsAction