make wxGetKeyState() work for non-modifier keys; corrected some key mappings (patch 1521490)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -35,6 +35,14 @@ class Crust(wx.SplitterWindow):
|
|||||||
*args, **kwds):
|
*args, **kwds):
|
||||||
"""Create Crust instance."""
|
"""Create Crust instance."""
|
||||||
wx.SplitterWindow.__init__(self, parent, id, pos, size, style, name)
|
wx.SplitterWindow.__init__(self, parent, id, pos, size, style, name)
|
||||||
|
|
||||||
|
# Turn off the tab-traversal style that is automatically
|
||||||
|
# turned on by wx.SplitterWindow. We do this because on
|
||||||
|
# Windows the event for Ctrl-Enter is stolen and used as a
|
||||||
|
# navigation key, but the Shell window uses it to insert lines.
|
||||||
|
style = self.GetWindowStyle()
|
||||||
|
self.SetWindowStyle(style & ~wx.TAB_TRAVERSAL)
|
||||||
|
|
||||||
self.shell = Shell(parent=self, introText=intro,
|
self.shell = Shell(parent=self, introText=intro,
|
||||||
locals=locals, InterpClass=InterpClass,
|
locals=locals, InterpClass=InterpClass,
|
||||||
startupScript=startupScript,
|
startupScript=startupScript,
|
||||||
|
Reference in New Issue
Block a user