[GRASS-SVN] r58788 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 27 11:06:00 PST 2014


Author: wenzeslaus
Date: 2014-01-27 11:06:00 -0800 (Mon, 27 Jan 2014)
New Revision: 58788

Modified:
   grass/trunk/gui/wxpython/gui_core/prompt.py
Log:
wxGUI/prompt: reacting to - (minus) key in all cases in command console (relates to #2152)

Modified: grass/trunk/gui/wxpython/gui_core/prompt.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/prompt.py	2014-01-27 08:39:57 UTC (rev 58787)
+++ grass/trunk/gui/wxpython/gui_core/prompt.py	2014-01-27 19:06:00 UTC (rev 58788)
@@ -404,8 +404,10 @@
                 return
             self.ShowList()
 
-        # complete flags after pressing '-'       
-        elif event.GetKeyCode() == 45 and not event.ShiftDown(): 
+        # complete flags after pressing '-'
+        elif (event.GetKeyCode() == 45 and not event.ShiftDown()) \
+                or event.GetKeyCode() == wx.WXK_NUMPAD_SUBTRACT \
+                or event.GetKeyCode() == wx.WXK_SUBTRACT:
             self.autoCompList = list()
             entry = self.GetTextLeft()
             self.InsertText(pos, '-')



More information about the grass-commit mailing list