From 179416dac75de701a6e49b244eb9078c1be24db0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 27 Oct 2015 18:20:25 +0800 Subject: [PATCH] gui: delete shortcuts --- artiq/gui/schedule.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/gui/schedule.py b/artiq/gui/schedule.py index 5505bf5bf..42ae01a1d 100644 --- a/artiq/gui/schedule.py +++ b/artiq/gui/schedule.py @@ -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)