forked from M-Labs/artiq
1
0
Fork 0

gui: delete shortcuts

This commit is contained in:
Sebastien Bourdeauducq 2015-10-27 18:20:25 +08:00
parent f872d92d22
commit 179416dac7
1 changed files with 2 additions and 0 deletions

View File

@ -75,9 +75,11 @@ class ScheduleDock(dockarea.Dock):
self.table.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
request_termination_action = QtGui.QAction("Request termination", self.table)
request_termination_action.triggered.connect(partial(self.delete_clicked, True))
request_termination_action.setShortcut("DELETE")
self.table.addAction(request_termination_action)
delete_action = QtGui.QAction("Delete", self.table)
delete_action.triggered.connect(partial(self.delete_clicked, False))
delete_action.setShortcut("SHIFT+DELETE")
self.table.addAction(delete_action)