[GRASS-SVN] r61555 - grass/branches/releasebranch_7_0/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 6 13:03:22 PDT 2014
Author: annakrat
Date: 2014-08-06 13:03:22 -0700 (Wed, 06 Aug 2014)
New Revision: 61555
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/gui_core/widgets.py
Log:
wxGUI/search: fix finding next match on Mac - workaround for Enter resulting in EVT_TEXT (merge from trunk, r61554)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/widgets.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/widgets.py 2014-08-06 19:58:49 UTC (rev 61554)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/widgets.py 2014-08-06 20:03:22 UTC (rev 61555)
@@ -843,6 +843,7 @@
self._results = [] # list of found nodes
self._resultIndex = -1
self._searchKeys = ['description', 'keywords', 'command']
+ self._oldValue = ''
self.moduleSelected = Signal('SearchModuleWidget.moduleSelected')
self.showSearchResult = Signal('SearchModuleWidget.showSearchResult')
@@ -913,6 +914,11 @@
def OnSearchModule(self, event):
"""!Search module by keywords or description"""
value = self._search.GetValue()
+ if value == self._oldValue:
+ event.Skip()
+ return
+ self._oldValue = value
+
if len(value) <= 2:
if len(value) == 0: # reset
commands = self._searchModule(keys=['command'], value='')
More information about the grass-commit
mailing list