support Ctrl-PageUp/Dn for changing the notebook pages in addition to [Shift-]Ctrl-Tab (this is also a standard key combination)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-06-30 23:08:00 +00:00
parent b3e5d05894
commit efe5e221b4

View File

@ -2105,6 +2105,20 @@ bool wxWindowMSW::MSWProcessMessage(WXMSG* pMsg)
bProcess = false;
break;
case VK_PRIOR:
bForward = false;
// fall through
case VK_NEXT:
// we treat PageUp/Dn as arrows because chances are that
// a control which needs arrows also needs them for
// navigation (e.g. wxTextCtrl, wxListCtrl, ...)
if ( (lDlgCode & DLGC_WANTARROWS) || !bCtrlDown )
bProcess = false;
else
bWindowChange = true;
break;
case VK_RETURN:
{
if ( (lDlgCode & DLGC_WANTMESSAGE) && !bCtrlDown )