#include "wx/panel.h"
#include "wx/clipbrd.h"
#include "wx/tokenzr.h"
+#include "wx/dcclient.h"
#include "wx/univ/inphand.h"
#include "wx/univ/renderer.h"
{
if (m_undos.GetCount() == 0) return;
- wxNode *node = m_undos.Nth( m_undos.GetCount()-1 );
- wxSourceUndoStep *undo = (wxSourceUndoStep*) node->Data();
+ wxList::Node *node = m_undos.Item( m_undos.GetCount()-1 );
+ wxSourceUndoStep *undo = (wxSourceUndoStep*) node->GetData();
undo->Undo();
}
default:
{
- if ( (event.KeyCode() >= 'a') &&
- (event.KeyCode() <= 'z') &&
+ if ( (event.GetKeyCode() >= 'a') &&
+ (event.GetKeyCode() <= 'z') &&
(event.AltDown()) )
{
// Alt-F etc.
return;
}
- if ( (event.KeyCode() >= 32) &&
- (event.KeyCode() <= 255) &&
+ if ( (event.GetKeyCode() >= 32) &&
+ (event.GetKeyCode() <= 255) &&
!(event.ControlDown() && !event.AltDown()) ) // filters out Ctrl-X but leaves Alt-Gr
{
if (HasSelection())
Delete();
- DoChar( (char) event.KeyCode() );
+ DoChar( (char) event.GetKeyCode() );
return;
}
}