Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ecf781 + 2ba852f commit 3b8c951Copy full SHA for 3b8c951
1 file changed
lib/matplotlib/backends/backend_wx.py
@@ -1007,14 +1007,16 @@ def _get_key(self, evt):
1007
def _onKeyDown(self, evt):
1008
"""Capture key press."""
1009
key = self._get_key(evt)
1010
- evt.Skip()
1011
FigureCanvasBase.key_press_event(self, key, guiEvent=evt)
+ if self:
1012
+ evt.Skip()
1013
1014
def _onKeyUp(self, evt):
1015
"""Release key."""
1016
1017
FigureCanvasBase.key_release_event(self, key, guiEvent=evt)
1018
1019
1020
1021
def _set_capture(self, capture=True):
1022
"""control wx mouse capture """
0 commit comments