When using wxPython GUI toolkit there is a problem with keyboard not working in popup windows, the CHAR events for inputs are not propagated. I have resolved this by implementing OnBeforePopup and creating the window on my own using wx. The problem is that the popup window and parent window are not able to script each other. So I'm thinking on a different fix, to implement OnBeforePopup, but with window creation being delegated to wx and browser embedding being delegated to CEF. I think this could be done by using the windowInfo parameter passed to OnBeforePopup. First the window would be created by wx and then I would call windowInfo.SetAsChild and pass the window handle. But how can I do that? The OnBeforePopup is being called on the IO thread and the window must be created on the UI thread. I can use the CefPostTask to delegate window creation to the UI thread, but how can I lock the IO thread for that time and get the widow handle from the UI thread?
Any ideas appreciated, thanks.