]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/scrlwing.cpp
Check wxDateTime components validity more rigorously.
[wxWidgets.git] / src / generic / scrlwing.cpp
index c5329862e2e50d948be9675b2b251581ee2beef9..7dcd4ba055b40f584673f110a850730c99640c70 100644 (file)
@@ -343,6 +343,8 @@ wxScrollHelperBase::wxScrollHelperBase(wxWindow *win)
     m_xScrollingEnabled =
     m_yScrollingEnabled = true;
 
+    m_kbdScrollingEnabled = true;
+
     m_scaleX =
     m_scaleY = 1.0;
 #if wxUSE_MOUSEWHEEL
@@ -844,6 +846,12 @@ void wxScrollHelperBase::HandleOnPaint(wxPaintEvent& WXUNUSED(event))
 // this they always have the priority
 void wxScrollHelperBase::HandleOnChar(wxKeyEvent& event)
 {
+    if ( !m_kbdScrollingEnabled )
+    {
+        event.Skip();
+        return;
+    }
+
     // prepare the event this key press maps to
     wxScrollWinEvent newEvent;