Use TranslateAccelerator so that TAB, Return, etc. keys are properly processed by wxActiveX controls.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -305,8 +305,6 @@ wxActiveX::~wxActiveX()
|
||||
|
||||
void wxActiveX::CreateActiveX(REFCLSID clsid)
|
||||
{
|
||||
SetTransparent();
|
||||
|
||||
HRESULT hret;
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
@@ -1777,6 +1775,16 @@ void wxActiveX::OnMouse(wxMouseEvent& event)
|
||||
wxLogTrace(wxT(""),wxT("msg sent"));
|
||||
}
|
||||
|
||||
bool wxActiveX::MSWTranslateMessage(WXMSG *msg){
|
||||
|
||||
if (msg->message == WM_KEYDOWN){
|
||||
HRESULT result = m_oleInPlaceActiveObject->TranslateAccelerator(msg);
|
||||
return (result == S_OK);
|
||||
}
|
||||
|
||||
return wxWindow::MSWTranslateMessage(msg);
|
||||
}
|
||||
|
||||
long wxActiveX::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
||||
{
|
||||
if (m_oleObjectHWND == NULL)
|
||||
|
Reference in New Issue
Block a user