[GRASS-SVN] r49680 -
grass/branches/develbranch_6/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 12 09:28:09 EST 2011
Author: martinl
Date: 2011-12-12 06:28:09 -0800 (Mon, 12 Dec 2011)
New Revision: 49680
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_core/prompt.py
Log:
wxGUI/prompt: special care also for NUMPAD_ENTER
Modified: grass/branches/develbranch_6/gui/wxpython/gui_core/prompt.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_core/prompt.py 2011-12-12 14:27:05 UTC (rev 49679)
+++ grass/branches/develbranch_6/gui/wxpython/gui_core/prompt.py 2011-12-12 14:28:09 UTC (rev 49680)
@@ -909,7 +909,7 @@
"""
# keycodes used: "." = 46, "=" = 61, "-" = 45
pos = self.GetCurrentPos()
- #complete command after pressing '.'
+ # complete command after pressing '.'
if event.GetKeyCode() == 46 and not event.ShiftDown():
self.autoCompList = list()
entry = self.GetTextLeft()
@@ -1080,7 +1080,7 @@
self.LineEnd()
self.parent.parent.statusbar.SetStatusText('')
- 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
More information about the grass-commit
mailing list