X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7403ad2d154a8e2974fdc5fc215258f3a75cdde..ce7088dd4e34d24c598614ade39d5907a152f53f:/wxPython/wx/lib/mvctree.py 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()