8000 Merge pull request #15177 from anntzer/wxcharhook · matplotlib/matplotlib@e69e2e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit e69e2e6

Browse files
authored
Merge pull request #15177 from anntzer/wxcharhook
Bind WX_CHAR_HOOK instead of WX_KEY_DOWN for wx key_press_event.
2 parents 5ba3911 + 27e5cb9 commit e69e2e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ def __init__(self, parent, id, figure):
514514

515515
self.Bind(wx.EVT_SIZE, self._onSize)
516516
self.Bind(wx.EVT_PAINT, self._onPaint)
517-
self.Bind(wx.EVT_KEY_DOWN, self._onKeyDown)
517+
self.Bind(wx.EVT_CHAR_HOOK, self._onKeyDown)
518518
self.Bind(wx.EVT_KEY_UP, self._onKeyUp)
519519
self.Bind(wx.EVT_LEFT_DOWN, self._onMouseButton)
520520
self.Bind(wx.EVT_LEFT_DCLICK, self._onMouseButton)

0 commit comments

Comments
 (0)
0