[GRASS-SVN] r62844 - grass/branches/releasebranch_7_0/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 20 18:33:51 PST 2014


Author: annakrat
Date: 2014-11-20 18:33:51 -0800 (Thu, 20 Nov 2014)
New Revision: 62844

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/gui_core/widgets.py
Log:
wxGUI/search: fix commit r62608 by removing additional event binding (merge from trunk, r62843)

Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/widgets.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/widgets.py	2014-11-21 02:32:06 UTC (rev 62843)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/widgets.py	2014-11-21 02:33:51 UTC (rev 62844)
@@ -882,7 +882,6 @@
             self._search.SetToolTipString(_("Type to search in all modules. Press Enter for next match."))
 
         self._search.Bind(wx.EVT_TEXT, self.OnSearchModule)
-        self._search.Bind(wx.EVT_KEY_UP,  self.OnKeyUp)
         self._search.Bind(wx.EVT_TEXT_ENTER, self.OnEnter)
 
         if self._showTip:
@@ -920,12 +919,6 @@
         self.SetSizer(sizer)
         sizer.Fit(self)
 
-    def OnKeyUp(self, event):
-        """Key or key combination pressed"""
-        if event.GetKeyCode() in (wx.WXK_RETURN, wx.WXK_NUMPAD_ENTER) and not event.ControlDown():
-            self._showSearchResult()
-        event.Skip()
-
     def OnEnter(self, event):
         """Process EVT_TEXT_ENTER to show search results"""
         self._showSearchResult()



More information about the grass-commit mailing list