Make Ctrl+Del the default for deleting item in project tree
This commit is contained in:
@@ -59,8 +59,8 @@ Project Tree Shortcuts
|
|||||||
":kbd:`Ctrl+R`", "Open the selected document in the viewer"
|
":kbd:`Ctrl+R`", "Open the selected document in the viewer"
|
||||||
":kbd:`Ctrl+Up`", "Move selected item one step up in the tree"
|
":kbd:`Ctrl+Up`", "Move selected item one step up in the tree"
|
||||||
":kbd:`Ctrl+Down`", "Move selected item one step down in the tree"
|
":kbd:`Ctrl+Down`", "Move selected item one step down in the tree"
|
||||||
|
":kbd:`Ctrl+Del`", "Move the selected item to Trash"
|
||||||
":kbd:`Ctrl+Shift+Z`", "Undo the last move of a project item, if possible"
|
":kbd:`Ctrl+Shift+Z`", "Undo the last move of a project item, if possible"
|
||||||
":kbd:`Ctrl+Shift+Del`", "Move the selected item to Trash"
|
|
||||||
|
|
||||||
|
|
||||||
.. _a_kb_editor:
|
.. _a_kb_editor:
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ class GuiMainMenu(QMenuBar):
|
|||||||
|
|
||||||
# Project > Delete
|
# Project > Delete
|
||||||
self.aDeleteItem = self.projMenu.addAction(self.tr("Delete Item"))
|
self.aDeleteItem = self.projMenu.addAction(self.tr("Delete Item"))
|
||||||
self.aDeleteItem.setShortcut("Ctrl+Shift+Del")
|
self.aDeleteItem.setShortcuts(["Ctrl+Del", "Ctrl+Shift+Del"]) # Latter is deprecated
|
||||||
self.aDeleteItem.triggered.connect(lambda: self.mainGui.projView.requestDeleteItem(None))
|
self.aDeleteItem.triggered.connect(lambda: self.mainGui.projView.requestDeleteItem(None))
|
||||||
|
|
||||||
# Project > Empty Trash
|
# Project > Empty Trash
|
||||||
|
|||||||
Reference in New Issue
Block a user