X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc690d951f800a579e01dbda5b500d969f2a01f6..1027cedd4747650395404575eb0d60b5bcb3437e:/wxPython/wx/py/editor.py

diff --git a/wxPython/wx/py/editor.py b/wxPython/wx/py/editor.py
index 1271d8760d..b21c691193 100644
--- a/wxPython/wx/py/editor.py
+++ b/wxPython/wx/py/editor.py
@@ -643,7 +643,7 @@ class Editor:
         Only receives an event if OnKeyDown calls event.Skip() for the
         corresponding event."""
 
-        key = event.KeyCode()
+        key = event.GetKeyCode()
         if key in self.autoCompleteKeys:
             # Usually the dot (period) key activates auto completion.
             if self.window.AutoCompActive(): 
@@ -671,7 +671,7 @@ class Editor:
     def OnKeyDown(self, event):
         """Key down event handler."""
 
-        key = event.KeyCode()
+        key = event.GetKeyCode()
         # If the auto-complete window is up let it do its thing.
         if self.window.AutoCompActive():
             event.Skip()