diff --git a/include/wx/msw/notebook.h b/include/wx/msw/notebook.h index fa7da1658c..2075b5fe62 100644 --- a/include/wx/msw/notebook.h +++ b/include/wx/msw/notebook.h @@ -156,7 +156,6 @@ public: virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result); virtual bool MSWOnScroll(int orientation, WXWORD nSBCode, WXWORD pos, WXHWND control); - virtual bool MSWTranslateMessage(WXMSG *wxmsg); #if wxUSE_CONSTRAINTS virtual void SetConstraintSizes(bool recurse = true); diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index b569568e7a..97e0049061 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -1056,25 +1056,6 @@ void wxNotebook::OnSelChange(wxNotebookEvent& event) event.Skip(); } -bool wxNotebook::MSWTranslateMessage(WXMSG *wxmsg) -{ - const MSG * const msg = (MSG *)wxmsg; - - // intercept TAB, CTRL+TAB and CTRL+SHIFT+TAB for processing by wxNotebook. - // TAB will be passed to the currently selected page, CTRL+TAB and - // CTRL+SHIFT+TAB will be processed by the notebook itself. do not - // intercept SHIFT+TAB. This goes to the parent of the notebook which will - // process it. - if ( msg->message == WM_KEYDOWN && msg->wParam == VK_TAB && - msg->hwnd == GetHwnd() && - (wxIsCtrlDown() || !wxIsShiftDown()) ) - { - return MSWProcessMessage(wxmsg); - } - - return false; -} - void wxNotebook::OnNavigationKey(wxNavigationKeyEvent& event) { if ( event.IsWindowChange() ) {