Thanks for working on such a great control!! I'm having an issue with keyboard focus that I can't seem to correct. I programmatically load an HTML file from disk into a wxWebConnect control in response to a keyboard event (F1 being pressed) in a styled text control. (Scintilla control) However, I can't seem to programmatically return the keyboard focus to the text control after loading the HTML file. I've included the following code in the text control event handler after I load the HTML file:
- Code: Select all
if(!GetSTCFocus()) {
SetSTCFocus(true);
}
if(!HasFocus()) {
SetFocus();
}
It seems that visually focus is returned to the text editor, but the wxWebConnect still has keyboard focus after the code above.
Any thoughts?
Thanks so much again for a very useful control!!
Matt Sutton