[GRASS-SVN] r42109 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 4 07:38:37 EDT 2010


Author: martinl
Date: 2010-05-04 07:38:36 -0400 (Tue, 04 May 2010)
New Revision: 42109

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py
Log:
wxGUI: fix key up/down for prompt


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py	2010-05-04 11:32:12 UTC (rev 42108)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py	2010-05-04 11:38:36 UTC (rev 42109)
@@ -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