Browse Source

wxGUI/search: fix commit https://trac.osgeo.org/grass/changeset/62608 by removing additional event binding (merge from trunk, https://trac.osgeo.org/grass/changeset/62843)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@62844 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 years ago
parent
commit
443da176c2
1 changed files with 0 additions and 7 deletions
  1. 0 7
      gui/wxpython/gui_core/widgets.py

+ 0 - 7
gui/wxpython/gui_core/widgets.py

@@ -882,7 +882,6 @@ class SearchModuleWidget(wx.Panel):
             self._search.SetToolTipString(_("Type to search in all modules. Press Enter for next match."))
             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_TEXT, self.OnSearchModule)
-        self._search.Bind(wx.EVT_KEY_UP,  self.OnKeyUp)
         self._search.Bind(wx.EVT_TEXT_ENTER, self.OnEnter)
         self._search.Bind(wx.EVT_TEXT_ENTER, self.OnEnter)
 
 
         if self._showTip:
         if self._showTip:
@@ -920,12 +919,6 @@ class SearchModuleWidget(wx.Panel):
         self.SetSizer(sizer)
         self.SetSizer(sizer)
         sizer.Fit(self)
         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):
     def OnEnter(self, event):
         """Process EVT_TEXT_ENTER to show search results"""
         """Process EVT_TEXT_ENTER to show search results"""
         self._showSearchResult()
         self._showSearchResult()