]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
Crude hack to enable PageUp/DownKeys when controlbar is enabled.
[wxWidgets.git] / src / msw / window.cpp
index a4bfa94f2a6660a1bf725e98757a33352e75b9f7..9e27c1d6aae275f7826f59f7474c8f8e280b9ffa 100644 (file)
@@ -1458,7 +1458,16 @@ bool wxWindow::MSWProcessMessage(WXMSG* pMsg)
                 event.SetEventObject(this);
 
                 if ( GetEventHandler()->ProcessEvent(event) )
+                {
+                    wxButton *btn = wxDynamicCast(FindFocus(), wxButton);
+                    if ( btn )
+                    {
+                        // the button which has focus should be default
+                        btn->SetDefault();
+                    }
+
                     return TRUE;
+                }
             }
         }