From efe5e221b415a8ce6e0a36848e7c90e70c9384cb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 30 Jun 2006 23:08:00 +0000 Subject: [PATCH] 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 --- src/msw/window.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index fcc7f3977b..251187616a 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -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 ) -- 2.45.2