Skip to content

Commit

Permalink
[processing] Pressing enter in search box executes the selected algor…
Browse files Browse the repository at this point in the history
…ithm
  • Loading branch information
nyalldawson committed Feb 22, 2018
1 parent 82bfc40 commit 62cd1ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/processing/gui/ProcessingToolbox.py
Expand Up @@ -71,6 +71,7 @@ def __init__(self):
self.processingToolbar.setIconSize(iface.iconSize(True))

self.searchBox.textChanged.connect(self.textChanged)
self.searchBox.returnPressed.connect(self.activateCurrent)
self.algorithmTree.customContextMenuRequested.connect(
self.showPopupMenu)
self.algorithmTree.doubleClicked.connect(self.executeAlgorithm)
Expand Down Expand Up @@ -296,6 +297,9 @@ def editRenderingStyles(self):
dlg = EditRenderingStylesDialog(alg)
dlg.exec_()

def activateCurrent(self):
self.executeAlgorithm()

def executeAlgorithmAsBatchProcess(self):
item = self.algorithmTree.currentItem()
if isinstance(item, TreeAlgorithmItem):
Expand Down

0 comments on commit 62cd1ed

Please sign in to comment.