From 7953a977c246a3688d34915cc9ab007e1f0fa06f Mon Sep 17 00:00:00 2001 From: Olivier Belanger Date: Thu, 1 Mar 2018 16:55:16 -0500 Subject: [PATCH] Change EVT_CHAR to EVT_KEY_DOWN in the interpreter textctrl of the server window (fixed scrolling history on MacOS). --- pyolib/_wxwidgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyolib/_wxwidgets.py b/pyolib/_wxwidgets.py index 2bca35038..1527014fb 100644 --- a/pyolib/_wxwidgets.py +++ b/pyolib/_wxwidgets.py @@ -3010,7 +3010,7 @@ def __init__(self, parent=None, nchnls=2, startf=None, stopf=None, tw, th = self.GetTextExtent("|") self.text = wx.TextCtrl(panel, -1, "", size=(202, th+8), style=wx.TE_PROCESS_ENTER) self.text.Bind(wx.EVT_TEXT_ENTER, self.getText) - self.text.Bind(wx.EVT_CHAR, self.onChar) + self.text.Bind(wx.EVT_KEY_DOWN, self.onChar) box.Add(self.text, 0, wx.LEFT | wx.RIGHT | wx.EXPAND, 5) box.AddSpacer(10)