[GRASS-SVN] r62843 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Nov 20 18:32:06 PST 2014
Author: annakrat
Date: 2014-11-20 18:32:06 -0800 (Thu, 20 Nov 2014)
New Revision: 62843
Modified:
grass/trunk/gui/wxpython/gui_core/widgets.py
Log:
wxGUI/search: fix commit r62608 by removing additional event binding
Modified: grass/trunk/gui/wxpython/gui_core/widgets.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/widgets.py 2014-11-20 21:33:36 UTC (rev 62842)
+++ grass/trunk/gui/wxpython/gui_core/widgets.py 2014-11-21 02:32:06 UTC (rev 62843)
@@ -938,7 +938,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:
@@ -976,12 +975,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