X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b881fc787d2823bdd8a415080b82feee90804a17..0d3997fd6d10c1fa80611eaff1c64b6b51cacb74:/wxPython/wx/lib/shell.py

diff --git a/wxPython/wx/lib/shell.py b/wxPython/wx/lib/shell.py
index 428a2cbbef..0f78ac3ed5 100644
--- a/wxPython/wx/lib/shell.py
+++ b/wxPython/wx/lib/shell.py
@@ -109,7 +109,7 @@ class PyShellInput(wx.Panel):
     def OnChar(self, event):
         """called on CHARevent.  executes input on newline"""
         # print "On Char:", event.__dict__.keys()
-        if event.KeyCode() !=wx.WXK_RETURN:
+        if event.GetKeyCode() !=wx.WXK_RETURN:
             # not of our business
             event.Skip()
             return