[GRASS-SVN] r58222 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Nov 14 12:50:41 PST 2013
Author: martinl
Date: 2013-11-14 12:50:41 -0800 (Thu, 14 Nov 2013)
New Revision: 58222
Modified:
grass/trunk/gui/wxpython/gui_core/menu.py
grass/trunk/gui/wxpython/gui_core/widgets.py
Log:
wxGUI: search modules - fix numpad enter
Modified: grass/trunk/gui/wxpython/gui_core/menu.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/menu.py 2013-11-14 20:45:06 UTC (rev 58221)
+++ grass/trunk/gui/wxpython/gui_core/menu.py 2013-11-14 20:50:41 UTC (rev 58222)
@@ -218,7 +218,8 @@
def OnKeyUp(self, event):
"""!Key or key combination pressed"""
- if event.ControlDown() and event.GetKeyCode() == wx.WXK_RETURN:
+ if event.ControlDown() and \
+ event.GetKeyCode() in (wx.WXK_RETURN, wx.WXK_NUMPAD_ENTER):
self.Run()
def OnItemSelected(self, node):
Modified: grass/trunk/gui/wxpython/gui_core/widgets.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/widgets.py 2013-11-14 20:45:06 UTC (rev 58221)
+++ grass/trunk/gui/wxpython/gui_core/widgets.py 2013-11-14 20:50:41 UTC (rev 58222)
@@ -848,7 +848,7 @@
def OnKeyUp(self, event):
"""!Key or key combination pressed"""
- if event.GetKeyCode() == wx.WXK_RETURN and not event.ControlDown():
+ if event.GetKeyCode() in (wx.WXK_RETURN, wx.WXK_NUMPAD_ENTER) and not event.ControlDown():
if self._results:
self._resultIndex += 1
if self._resultIndex == len(self._results):
More information about the grass-commit
mailing list