Kaynağa Gözat

wxGUI/search: fix commit https://trac.osgeo.org/grass/changeset/62608 by removing additional event binding

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@62843 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 yıl önce
ebeveyn
işleme
e7eace2408
1 değiştirilmiş dosya ile 0 ekleme ve 7 silme
  1. 0 7
      gui/wxpython/gui_core/widgets.py

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

@@ -938,7 +938,6 @@ class SearchModuleWidget(wx.Panel):
             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:
@@ -976,12 +975,6 @@ class SearchModuleWidget(wx.Panel):
         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()