]> git.saurik.com Git - wxWidgets.git/commitdiff
support Ctrl-PageUp/Dn for changing the notebook pages in addition to [Shift-]Ctrl...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Jun 2006 23:08:00 +0000 (23:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Jun 2006 23:08:00 +0000 (23:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index fcc7f3977bb9841a618984f069d9d88cd477b2ee..251187616aeb529af0daad4d84fe81b86efe50ec 100644 (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 )