void MyCanvas::OnChar( wxKeyEvent &event )
{
- switch ( event.KeyCode() )
+ switch ( event.GetKeyCode() )
{
case WXK_LEFT:
PrevChar();
break;
default:
- if ( !event.AltDown() && wxIsprint(event.KeyCode()) )
+ if ( !event.AltDown() && wxIsprint(event.GetKeyCode()) )
{
- wxChar ch = (wxChar)event.KeyCode();
+ wxChar ch = (wxChar)event.GetKeyCode();
CharAt(m_xCaret, m_yCaret) = ch;
wxCaretSuspend cs(this);