projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add wxVersionInfo and functions returning it for 3rd party libraries.
[wxWidgets.git]
/
src
/
generic
/
scrlwing.cpp
diff --git
a/src/generic/scrlwing.cpp
b/src/generic/scrlwing.cpp
index c5329862e2e50d948be9675b2b251581ee2beef9..7dcd4ba055b40f584673f110a850730c99640c70 100644
(file)
--- a/
src/generic/scrlwing.cpp
+++ b/
src/generic/scrlwing.cpp
@@
-343,6
+343,8
@@
wxScrollHelperBase::wxScrollHelperBase(wxWindow *win)
m_xScrollingEnabled =
m_yScrollingEnabled = true;
m_xScrollingEnabled =
m_yScrollingEnabled = true;
+ m_kbdScrollingEnabled = true;
+
m_scaleX =
m_scaleY = 1.0;
#if wxUSE_MOUSEWHEEL
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)
{
// 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;
// prepare the event this key press maps to
wxScrollWinEvent newEvent;