From: Vadim Zeitlin Date: Tue, 25 Jul 2006 00:19:46 +0000 (+0000) Subject: make wxGetKeyState() work for non-modifier keys; corrected some key mappings (patch... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f365323fd60d5d5d2435a066267e0a54d0fbe745 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 --- diff --git a/wxPython/wx/py/crust.py b/wxPython/wx/py/crust.py index 4dea629362..d3715d50ef 100644 --- a/wxPython/wx/py/crust.py +++ b/wxPython/wx/py/crust.py @@ -35,6 +35,14 @@ class Crust(wx.SplitterWindow): *args, **kwds): """Create Crust instance.""" 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, locals=locals, InterpClass=InterpClass, startupScript=startupScript,