Use GetKeyCode() instead of KeyCode()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -417,7 +417,7 @@ Platform: %s""" % \
|
||||
# commands/responses.
|
||||
if not self.CanEdit():
|
||||
return
|
||||
key = event.KeyCode()
|
||||
key = event.GetKeyCode()
|
||||
currpos = self.GetCurrentPos()
|
||||
stoppos = self.promptPosEnd
|
||||
# Return (Enter) needs to be ignored in this handler.
|
||||
@@ -452,7 +452,7 @@ Platform: %s""" % \
|
||||
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.AutoCompActive():
|
||||
event.Skip()
|
||||
|
Reference in New Issue
Block a user