浏览代码

wxGUI/gselect: treectrl OnKeyDown doesn't exist anymore

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63283 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 年之前
父节点
当前提交
d14925bb29
共有 1 个文件被更改,包括 3 次插入6 次删除
  1. 3 6
      gui/wxpython/gui_core/gselect.py

+ 3 - 6
gui/wxpython/gui_core/gselect.py

@@ -110,12 +110,9 @@ class Select(wx.combo.ComboCtrl):
 
     def OnKeyDown(self, event):
         """Open popup and send key events to the tree."""
-        if self.IsPopupShown():
-            self.tcp.OnKeyDown(event)
-        else:
-            if event.GetKeyCode() == wx.WXK_DOWN:
-                self.ShowPopup()
-            event.Skip()
+        if event.GetKeyCode() == wx.WXK_DOWN:
+            self.ShowPopup()
+        event.Skip()
 
     def SetElementList(self, type, mapsets = None):
         """Set element list