Fixed bug keyboard events not catch by graphs when trying to move cursor on Windows
authorLaurent Bessard
Wed, 29 May 2013 11:14:45 +0200
changeset 1190 410b519abd66
parent 1189 93a4431a0cd8
child 1191 5237f87e035f
Fixed bug keyboard events not catch by graphs when trying to move cursor on Windows
controls/DebugVariablePanel.py
--- a/controls/DebugVariablePanel.py	Wed May 29 11:10:19 2013 +0200
+++ b/controls/DebugVariablePanel.py	Wed May 29 11:14:45 2013 +0200
@@ -812,6 +812,7 @@
             self.Figure.subplotpars.update(top=0.95, left=0.1, bottom=0.1, right=0.95)
             
             FigureCanvas.__init__(self, parent, -1, self.Figure)
+            self.SetWindowStyle(wx.WANTS_CHARS)
             self.SetBackgroundColour(wx.WHITE)
             self.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown)
             self.Bind(wx.EVT_ENTER_WINDOW, self.OnEnter)