[GRASS-SVN] r42110 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 4 08:05:43 EDT 2010


Author: martinl
Date: 2010-05-04 08:05:43 -0400 (Tue, 04 May 2010)
New Revision: 42110

Modified:
   grass/trunk/gui/wxpython/gui_modules/prompt.py
Log:
wxGUI: fix key up/down for prompt
(merge r42109 from devbr6)


Modified: grass/trunk/gui/wxpython/gui_modules/prompt.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/prompt.py	2010-05-04 11:38:36 UTC (rev 42109)
+++ grass/trunk/gui/wxpython/gui_modules/prompt.py	2010-05-04 12:05:43 UTC (rev 42110)
@@ -838,7 +838,8 @@
                 self.autoCompList = self.mapList[self.promptType]
                 self.AutoCompShow(lenEntered = 0, itemList = ' '.join(self.autoCompList))
             
-        elif event.GetKeyCode() in [wx.WXK_UP, wx.WXK_DOWN]:
+        elif event.GetKeyCode() in [wx.WXK_UP, wx.WXK_DOWN] and \
+                 not self.AutoCompActive():
             # Command history using up and down   
             if len(self.cmdbuffer) < 1:
                 return



More information about the grass-commit mailing list