[GRASS-SVN] r58221 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 14 12:45:06 PST 2013


Author: martinl
Date: 2013-11-14 12:45:06 -0800 (Thu, 14 Nov 2013)
New Revision: 58221

Modified:
   grass/trunk/gui/wxpython/gui_core/prompt.py
Log:
wxGUI: run command also when numpad enter key is pressed

Modified: grass/trunk/gui/wxpython/gui_core/prompt.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/prompt.py	2013-11-14 20:00:20 UTC (rev 58220)
+++ grass/trunk/gui/wxpython/gui_core/prompt.py	2013-11-14 20:45:06 UTC (rev 58221)
@@ -557,7 +557,7 @@
 
             self.ShowStatusText('')
             
-        elif event.GetKeyCode() == wx.WXK_RETURN and \
+        elif event.GetKeyCode() in (wx.WXK_RETURN, wx.WXK_NUMPAD_ENTER) and \
                 self.AutoCompActive() == False:
             # run command on line when <return> is pressed
             self._runCmd(self.GetCurLine()[0].strip())



More information about the grass-commit mailing list