From f365323fd60d5d5d2435a066267e0a54d0fbe745 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 25 Jul 2006 00:19:46 +0000 Subject: [PATCH] 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 --- wxPython/wx/py/crust.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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, -- 2.45.2