Kaynağa Gözat

wxGUI: run command also when numpad enter key is pressed

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58221 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 yıl önce
ebeveyn
işleme
650a4475eb
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      gui/wxpython/gui_core/prompt.py

+ 1 - 1
gui/wxpython/gui_core/prompt.py

@@ -557,7 +557,7 @@ class GPromptSTC(GPrompt, wx.stc.StyledTextCtrl):
 
             self.ShowStatusText('')
             
-        elif event.GetKeyCode() == wx.WXK_RETURN and \
+        elif event.GetKeyCode() in (wx.WXK_RETURN, wx.WXK_NUMPAD_ENTER) and \
                 self.AutoCompActive() == False:
             # run command on line when <return> is pressed
             self._runCmd(self.GetCurLine()[0].strip())