[GRASS-SVN] r42028 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Apr 25 03:47:36 EDT 2010
Author: martinl
Date: 2010-04-25 03:47:36 -0400 (Sun, 25 Apr 2010)
New Revision: 42028
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py
Log:
wxGUI: clear cmd after run, cmd history up/down
(merge r42027 from trunk)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py 2010-04-25 07:44:52 UTC (rev 42027)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py 2010-04-25 07:47:36 UTC (rev 42028)
@@ -838,8 +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] and event.ControlDown():
- # Command history using ctrl-up and ctrl-down
+ elif event.GetKeyCode() in [wx.WXK_UP, wx.WXK_DOWN]:
+ # Command history using up and down
if len(self.cmdbuffer) < 1:
return
@@ -896,7 +896,10 @@
if len(self.cmdbuffer) > 200:
del self.cmdbuffer[0]
self.cmdindex = len(self.cmdbuffer)
-
+
+ # reset command-line
+ self.OnCmdErase(None)
+
elif event.GetKeyCode() == wx.WXK_SPACE:
items = self.GetTextLeft().split()
if len(items) == 1:
More information about the grass-commit
mailing list