X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7403ad2d154a8e2974fdc5fc215258f3a75cdde..68fc5c8025e38b9d827383fbfe7ce509ae331c1f:/wxPython/wx/lib/mvctree.py?ds=sidebyside diff --git a/wxPython/wx/lib/mvctree.py b/wxPython/wx/lib/mvctree.py index dd84720c36..eb49ea03de 100644 --- a/wxPython/wx/lib/mvctree.py +++ b/wxPython/wx/lib/mvctree.py @@ -404,9 +404,9 @@ class FileEditor(Editor): def _key(self, evt): - if evt.KeyCode() == wx.WXK_RETURN: + if evt.GetKeyCode() == wx.WXK_RETURN: self.EndEdit(True) - elif evt.KeyCode() == wx.WXK_ESCAPE: + elif evt.GetKeyCode() == wx.WXK_ESCAPE: self.EndEdit(False) else: evt.Skip()