Don't steal up/down arrows from textboxes and the like.
This commit is contained in:
parent
4f453d6b92
commit
4de264ddaa
|
@ -31,6 +31,7 @@
|
||||||
#include <wx/stc/stc.h>
|
#include <wx/stc/stc.h>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include "wx/listctrl.h"
|
||||||
|
|
||||||
// Maps from dialogTitle <-> pageTitle for keeping track of last-selected pages.
|
// 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.
|
// 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 )
|
void PAGED_DIALOG::onCharHook( wxKeyEvent& aEvent )
|
||||||
{
|
{
|
||||||
|
if( dynamic_cast<wxTextEntry*>( aEvent.GetEventObject() )
|
||||||
|
|| dynamic_cast<wxStyledTextCtrl*>( aEvent.GetEventObject() )
|
||||||
|
|| dynamic_cast<wxListView*>( aEvent.GetEventObject() ) )
|
||||||
|
{
|
||||||
|
aEvent.Skip();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if( aEvent.GetKeyCode() == WXK_UP )
|
if( aEvent.GetKeyCode() == WXK_UP )
|
||||||
{
|
{
|
||||||
int page = m_treebook->GetSelection();
|
int page = m_treebook->GetSelection();
|
||||||
|
|
Loading…
Reference in New Issue