[ui][processing] Also allow the enter key to launch the selected algorithm

This commit is contained in:
nirvn 2021-10-10 13:22:38 +07:00 committed by Mathieu Pellerin
parent b5f898f418
commit 24a61fafb1

View File

@ -79,6 +79,7 @@ class HistoryDialog(BASE, WIDGET):
self.tree.doubleClicked.connect(self.executeAlgorithm)
self.tree.currentItemChanged.connect(self.changeText)
shorcut = QShortcut(Qt.Key_Return, self.tree, context=Qt.WidgetShortcut, activated=self.executeAlgorithm)
shorcut = QShortcut(Qt.Key_Enter, self.tree, context=Qt.WidgetShortcut, activated=self.executeAlgorithm)
self.clearButton.clicked.connect(self.clearLog)
self.saveButton.clicked.connect(self.saveLog)