Browse Source

wxGUI: fix key up/down for prompt
(merge https://trac.osgeo.org/grass/changeset/42109 from devbr6)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42110 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 15 years ago
parent
commit
aa7f76838e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gui/wxpython/gui_modules/prompt.py

+ 2 - 1
gui/wxpython/gui_modules/prompt.py

@@ -838,7 +838,8 @@ class GPromptSTC(GPrompt, wx.stc.StyledTextCtrl):
                 self.autoCompList = self.mapList[self.promptType]
                 self.autoCompList = self.mapList[self.promptType]
                 self.AutoCompShow(lenEntered = 0, itemList = ' '.join(self.autoCompList))
                 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   
             # Command history using up and down   
             if len(self.cmdbuffer) < 1:
             if len(self.cmdbuffer) < 1:
                 return
                 return