diff --git a/common/widgets/paged_dialog.cpp b/common/widgets/paged_dialog.cpp index 14ce678ad6..5cf0a0cfbc 100644 --- a/common/widgets/paged_dialog.cpp +++ b/common/widgets/paged_dialog.cpp @@ -31,6 +31,7 @@ #include #include +#include "wx/listctrl.h" // Maps from dialogTitle <-> pageTitle for keeping track of last-selected pages. // This is not a simple page index because some dialogs have dynamic page sets. @@ -333,6 +334,14 @@ void PAGED_DIALOG::UpdateResetButton( int aPage ) void PAGED_DIALOG::onCharHook( wxKeyEvent& aEvent ) { + if( dynamic_cast( aEvent.GetEventObject() ) + || dynamic_cast( aEvent.GetEventObject() ) + || dynamic_cast( aEvent.GetEventObject() ) ) + { + aEvent.Skip(); + return; + } + if( aEvent.GetKeyCode() == WXK_UP ) { int page = m_treebook->GetSelection();