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:
@@ -12,6 +12,9 @@ __cvsid__ = "$Id$"
|
||||
__revision__ = "$Revision$"[11:-2]
|
||||
|
||||
import wx
|
||||
import os
|
||||
print "PID:", os.getpid()
|
||||
raw_input("...")
|
||||
|
||||
class App(wx.App):
|
||||
"""PyShell standalone application."""
|
||||
|
@@ -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()
|
||||
|
@@ -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