2002-04-07 18:08:25 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: keyboard.cpp
|
2004-05-25 11:20:37 +00:00
|
|
|
// Purpose: Keyboard wxWidgets sample
|
2002-04-07 18:08:25 +00:00
|
|
|
// Author: Vadim Zeitlin
|
2008-06-07 15:24:49 +00:00
|
|
|
// Modified by: Marcin Wojdyr
|
2002-04-07 18:08:25 +00:00
|
|
|
// Created: 07.04.02
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2002 Vadim Zeitlin
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "wx/wxprec.h"
|
|
|
|
|
|
|
|
#ifdef __BORLANDC__
|
|
|
|
#pragma hdrstop
|
|
|
|
#endif
|
|
|
|
#ifndef WX_PRECOMP
|
|
|
|
#include "wx/wx.h"
|
|
|
|
#endif
|
|
|
|
|
2009-02-08 01:01:00 +00:00
|
|
|
#ifndef __WXMSW__
|
|
|
|
#include "../sample.xpm"
|
|
|
|
#endif
|
2002-04-07 18:08:25 +00:00
|
|
|
|
|
|
|
// Define a new frame type: this is going to be our main frame
|
|
|
|
class MyFrame : public wxFrame
|
|
|
|
{
|
|
|
|
public:
|
2008-06-07 15:24:49 +00:00
|
|
|
MyFrame(const wxString& title);
|
2002-04-07 18:08:25 +00:00
|
|
|
|
|
|
|
private:
|
2008-06-07 15:24:49 +00:00
|
|
|
// event handlers
|
|
|
|
void OnQuit(wxCommandEvent& WXUNUSED(event)) { Close(true); }
|
|
|
|
void OnAbout(wxCommandEvent& event);
|
2009-12-17 16:44:22 +00:00
|
|
|
|
|
|
|
void OnTestAccelA(wxCommandEvent& WXUNUSED(event))
|
|
|
|
{ m_logText->AppendText("Test accelerator \"A\" used.\n"); }
|
|
|
|
void OnTestAccelCtrlA(wxCommandEvent& WXUNUSED(event))
|
|
|
|
{ m_logText->AppendText("Test accelerator \"Ctrl-A\" used.\n"); }
|
|
|
|
void OnTestAccelEsc(wxCommandEvent& WXUNUSED(event))
|
|
|
|
{ m_logText->AppendText("Test accelerator \"Esc\" used.\n"); }
|
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
void OnClear(wxCommandEvent& WXUNUSED(event)) { m_logText->Clear(); }
|
|
|
|
void OnSkip(wxCommandEvent& event) { m_skip = event.IsChecked(); }
|
2009-12-17 16:44:22 +00:00
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
void OnKeyDown(wxKeyEvent& event) { LogEvent("KeyDown", event); }
|
|
|
|
void OnKeyUp(wxKeyEvent& event) { LogEvent("KeyUp", event); }
|
|
|
|
void OnChar(wxKeyEvent& event) { LogEvent("Char", event); }
|
|
|
|
void OnPaintInputWin(wxPaintEvent& event);
|
2002-04-07 18:08:25 +00:00
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
void LogEvent(const wxString& name, wxKeyEvent& event);
|
2002-04-07 18:08:25 +00:00
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
wxTextCtrl *m_logText;
|
|
|
|
wxWindow *m_inputWin;
|
|
|
|
bool m_skip;
|
2002-04-07 18:08:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
// Define a new application type, each program should derive a class from wxApp
|
|
|
|
class MyApp : public wxApp
|
2002-04-07 18:08:25 +00:00
|
|
|
{
|
|
|
|
public:
|
2008-06-07 15:24:49 +00:00
|
|
|
// 'Main program' equivalent: the program execution "starts" here
|
|
|
|
virtual bool OnInit()
|
2002-04-07 18:08:25 +00:00
|
|
|
{
|
2008-06-07 15:24:49 +00:00
|
|
|
// create the main application window
|
|
|
|
new MyFrame("Keyboard wxWidgets App");
|
2002-04-07 18:08:25 +00:00
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
// If we returned false here, the application would exit immediately.
|
|
|
|
return true;
|
2002-04-07 18:08:25 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2004-05-25 11:20:37 +00:00
|
|
|
// Create a new application object: this macro will allow wxWidgets to create
|
2002-04-07 18:08:25 +00:00
|
|
|
// the application object during program execution (it's better than using a
|
|
|
|
// static object for many reasons) and also declares the accessor function
|
|
|
|
// wxGetApp() which will return the reference of the right type (i.e. MyApp and
|
|
|
|
// not wxApp)
|
|
|
|
IMPLEMENT_APP(MyApp)
|
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
|
2002-04-07 18:08:25 +00:00
|
|
|
// ============================================================================
|
|
|
|
// implementation
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// frame constructor
|
2008-06-07 15:24:49 +00:00
|
|
|
MyFrame::MyFrame(const wxString& title)
|
|
|
|
: wxFrame(NULL, wxID_ANY, title),
|
|
|
|
m_inputWin(NULL),
|
|
|
|
m_skip(true)
|
2002-04-07 18:08:25 +00:00
|
|
|
{
|
2009-02-08 01:01:00 +00:00
|
|
|
SetIcon(wxICON(sample));
|
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
// IDs for menu items
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
QuitID = wxID_EXIT,
|
|
|
|
ClearID = wxID_CLEAR,
|
|
|
|
SkipID = 100,
|
2009-12-17 16:44:22 +00:00
|
|
|
TestAccelA,
|
|
|
|
TestAccelCtrlA,
|
|
|
|
TestAccelEsc
|
2008-06-07 15:24:49 +00:00
|
|
|
};
|
|
|
|
|
2002-04-07 18:08:25 +00:00
|
|
|
// create a menu bar
|
|
|
|
wxMenu *menuFile = new wxMenu;
|
2008-06-07 15:24:49 +00:00
|
|
|
|
|
|
|
menuFile->Append(ClearID, "&Clear log\tCtrl-L");
|
|
|
|
menuFile->AppendSeparator();
|
|
|
|
|
2009-12-17 16:44:22 +00:00
|
|
|
menuFile->Append(TestAccelA, "Test accelerator &1\tA");
|
|
|
|
menuFile->Append(TestAccelCtrlA, "Test accelerator &2\tCtrl-A");
|
|
|
|
menuFile->Append(TestAccelEsc, "Test accelerator &3\tEsc");
|
|
|
|
menuFile->AppendSeparator();
|
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
menuFile->AppendCheckItem(SkipID, "Call event.&Skip()\tCtrl-S");
|
|
|
|
menuFile->Check(SkipID, true);
|
2002-04-07 18:08:25 +00:00
|
|
|
menuFile->AppendSeparator();
|
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
menuFile->Append(QuitID, "E&xit\tAlt-X", "Quit this program");
|
2002-04-07 18:08:25 +00:00
|
|
|
|
|
|
|
// the "About" item should be in the help menu
|
|
|
|
wxMenu *menuHelp = new wxMenu;
|
2008-06-07 15:24:49 +00:00
|
|
|
menuHelp->Append(wxID_ABOUT, "&About...\tF1", "Show about dialog");
|
2002-04-07 18:08:25 +00:00
|
|
|
|
|
|
|
// now append the freshly created menu to the menu bar...
|
|
|
|
wxMenuBar *menuBar = new wxMenuBar();
|
2008-06-07 15:24:49 +00:00
|
|
|
menuBar->Append(menuFile, "&File");
|
|
|
|
menuBar->Append(menuHelp, "&Help");
|
2002-04-07 18:08:25 +00:00
|
|
|
|
|
|
|
// ... and attach this menu bar to the frame
|
|
|
|
SetMenuBar(menuBar);
|
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
m_inputWin = new wxWindow(this, wxID_ANY, wxDefaultPosition, wxSize(-1, 50),
|
|
|
|
wxRAISED_BORDER),
|
|
|
|
m_inputWin->SetBackgroundColour(*wxBLUE);
|
|
|
|
|
|
|
|
wxTextCtrl *headerText = new wxTextCtrl(this, wxID_ANY, "",
|
|
|
|
wxDefaultPosition, wxDefaultSize,
|
|
|
|
wxTE_READONLY);
|
|
|
|
headerText->SetValue(
|
|
|
|
" event key KeyCode mod UnicodeKey "
|
|
|
|
" RawKeyCode RawKeyFlags");
|
|
|
|
|
|
|
|
|
2009-02-08 01:01:00 +00:00
|
|
|
m_logText = new wxTextCtrl(this, wxID_ANY, "",
|
2008-06-07 15:24:49 +00:00
|
|
|
wxDefaultPosition, wxDefaultSize,
|
|
|
|
wxTE_MULTILINE|wxTE_READONLY|wxHSCROLL);
|
|
|
|
|
|
|
|
// set monospace font to have output in nice columns
|
2009-02-08 01:01:00 +00:00
|
|
|
wxFont font(10, wxFONTFAMILY_TELETYPE,
|
2008-06-07 15:24:49 +00:00
|
|
|
wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);
|
|
|
|
headerText->SetFont(font);
|
|
|
|
m_logText->SetFont(font);
|
|
|
|
|
|
|
|
// layout
|
|
|
|
wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
|
|
|
|
sizer->Add(m_inputWin, wxSizerFlags().Expand());
|
|
|
|
sizer->Add(headerText, wxSizerFlags().Expand());
|
|
|
|
sizer->Add(m_logText, wxSizerFlags(1).Expand());
|
|
|
|
SetSizerAndFit(sizer);
|
|
|
|
|
|
|
|
// set size and position on screen
|
|
|
|
SetSize(700, 340);
|
|
|
|
CentreOnScreen();
|
|
|
|
|
|
|
|
// connect menu event handlers
|
|
|
|
|
|
|
|
Connect(QuitID, wxEVT_COMMAND_MENU_SELECTED,
|
|
|
|
wxCommandEventHandler(MyFrame::OnQuit));
|
|
|
|
|
|
|
|
Connect(wxID_ABOUT, wxEVT_COMMAND_MENU_SELECTED,
|
|
|
|
wxCommandEventHandler(MyFrame::OnAbout));
|
|
|
|
|
|
|
|
Connect(ClearID, wxEVT_COMMAND_MENU_SELECTED,
|
|
|
|
wxCommandEventHandler(MyFrame::OnClear));
|
|
|
|
|
|
|
|
Connect(SkipID, wxEVT_COMMAND_MENU_SELECTED,
|
|
|
|
wxCommandEventHandler(MyFrame::OnSkip));
|
|
|
|
|
2009-12-17 16:44:22 +00:00
|
|
|
Connect(TestAccelA, wxEVT_COMMAND_MENU_SELECTED,
|
|
|
|
wxCommandEventHandler(MyFrame::OnTestAccelA));
|
|
|
|
|
|
|
|
Connect(TestAccelCtrlA, wxEVT_COMMAND_MENU_SELECTED,
|
|
|
|
wxCommandEventHandler(MyFrame::OnTestAccelCtrlA));
|
|
|
|
|
|
|
|
Connect(TestAccelEsc, wxEVT_COMMAND_MENU_SELECTED,
|
|
|
|
wxCommandEventHandler(MyFrame::OnTestAccelEsc));
|
|
|
|
|
2009-02-08 01:01:00 +00:00
|
|
|
// connect event handlers for the blue input window
|
2008-06-07 15:24:49 +00:00
|
|
|
m_inputWin->Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(MyFrame::OnKeyDown),
|
|
|
|
NULL, this);
|
|
|
|
m_inputWin->Connect(wxEVT_KEY_UP, wxKeyEventHandler(MyFrame::OnKeyUp),
|
|
|
|
NULL, this);
|
|
|
|
m_inputWin->Connect(wxEVT_CHAR, wxKeyEventHandler(MyFrame::OnChar),
|
|
|
|
NULL, this);
|
2009-02-08 01:01:00 +00:00
|
|
|
m_inputWin->Connect(wxEVT_PAINT,
|
2008-06-07 15:24:49 +00:00
|
|
|
wxPaintEventHandler(MyFrame::OnPaintInputWin),
|
|
|
|
NULL, this);
|
|
|
|
|
|
|
|
// and show itself (the frames, unlike simple controls, are not shown when
|
|
|
|
// created initially)
|
|
|
|
Show(true);
|
2002-04-07 18:08:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// event handlers
|
|
|
|
|
|
|
|
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
|
|
|
{
|
2008-06-07 15:24:49 +00:00
|
|
|
wxMessageBox("Demonstrates keyboard event processing in wxWidgets\n"
|
|
|
|
"(c) 2002 Vadim Zeitlin\n"
|
|
|
|
"(c) 2008 Marcin Wojdyr",
|
|
|
|
"About wxWidgets Keyboard Sample",
|
|
|
|
wxOK | wxICON_INFORMATION, this);
|
2002-04-07 18:08:25 +00:00
|
|
|
}
|
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
void MyFrame::OnPaintInputWin(wxPaintEvent& WXUNUSED(event))
|
2002-04-07 18:08:25 +00:00
|
|
|
{
|
2008-06-07 15:24:49 +00:00
|
|
|
wxPaintDC dc(m_inputWin);
|
|
|
|
dc.SetTextForeground(*wxWHITE);
|
|
|
|
wxFont font(*wxSWISS_FONT);
|
|
|
|
font.SetWeight(wxFONTWEIGHT_BOLD);
|
|
|
|
font.SetPointSize(font.GetPointSize() + 2);
|
|
|
|
dc.SetFont(font);
|
|
|
|
|
2009-02-08 01:01:00 +00:00
|
|
|
dc.DrawLabel("Press keys here",
|
2008-06-07 15:24:49 +00:00
|
|
|
m_inputWin->GetClientRect(), wxALIGN_CENTER);
|
2002-04-07 18:08:25 +00:00
|
|
|
}
|
|
|
|
|
2002-04-07 21:02:10 +00:00
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
// helper function that returns textual description of wx virtual keycode
|
|
|
|
const char* GetVirtualKeyCodeName(int keycode)
|
2002-04-07 18:08:25 +00:00
|
|
|
{
|
2008-06-07 15:24:49 +00:00
|
|
|
switch ( keycode )
|
2002-04-07 18:08:25 +00:00
|
|
|
{
|
2008-06-07 15:24:49 +00:00
|
|
|
#define WXK_(x) \
|
2009-02-08 01:01:00 +00:00
|
|
|
case WXK_##x: return #x;
|
2008-06-07 15:24:49 +00:00
|
|
|
|
|
|
|
WXK_(BACK)
|
|
|
|
WXK_(TAB)
|
|
|
|
WXK_(RETURN)
|
|
|
|
WXK_(ESCAPE)
|
|
|
|
WXK_(SPACE)
|
|
|
|
WXK_(DELETE)
|
|
|
|
WXK_(START)
|
|
|
|
WXK_(LBUTTON)
|
|
|
|
WXK_(RBUTTON)
|
|
|
|
WXK_(CANCEL)
|
|
|
|
WXK_(MBUTTON)
|
|
|
|
WXK_(CLEAR)
|
|
|
|
WXK_(SHIFT)
|
|
|
|
WXK_(ALT)
|
|
|
|
WXK_(CONTROL)
|
|
|
|
WXK_(MENU)
|
|
|
|
WXK_(PAUSE)
|
|
|
|
WXK_(CAPITAL)
|
|
|
|
WXK_(END)
|
|
|
|
WXK_(HOME)
|
|
|
|
WXK_(LEFT)
|
|
|
|
WXK_(UP)
|
|
|
|
WXK_(RIGHT)
|
|
|
|
WXK_(DOWN)
|
|
|
|
WXK_(SELECT)
|
|
|
|
WXK_(PRINT)
|
|
|
|
WXK_(EXECUTE)
|
|
|
|
WXK_(SNAPSHOT)
|
|
|
|
WXK_(INSERT)
|
|
|
|
WXK_(HELP)
|
|
|
|
WXK_(NUMPAD0)
|
|
|
|
WXK_(NUMPAD1)
|
|
|
|
WXK_(NUMPAD2)
|
|
|
|
WXK_(NUMPAD3)
|
|
|
|
WXK_(NUMPAD4)
|
|
|
|
WXK_(NUMPAD5)
|
|
|
|
WXK_(NUMPAD6)
|
|
|
|
WXK_(NUMPAD7)
|
|
|
|
WXK_(NUMPAD8)
|
|
|
|
WXK_(NUMPAD9)
|
|
|
|
WXK_(MULTIPLY)
|
|
|
|
WXK_(ADD)
|
|
|
|
WXK_(SEPARATOR)
|
|
|
|
WXK_(SUBTRACT)
|
|
|
|
WXK_(DECIMAL)
|
|
|
|
WXK_(DIVIDE)
|
|
|
|
WXK_(F1)
|
|
|
|
WXK_(F2)
|
|
|
|
WXK_(F3)
|
|
|
|
WXK_(F4)
|
|
|
|
WXK_(F5)
|
|
|
|
WXK_(F6)
|
|
|
|
WXK_(F7)
|
|
|
|
WXK_(F8)
|
|
|
|
WXK_(F9)
|
|
|
|
WXK_(F10)
|
|
|
|
WXK_(F11)
|
|
|
|
WXK_(F12)
|
|
|
|
WXK_(F13)
|
|
|
|
WXK_(F14)
|
|
|
|
WXK_(F15)
|
|
|
|
WXK_(F16)
|
|
|
|
WXK_(F17)
|
|
|
|
WXK_(F18)
|
|
|
|
WXK_(F19)
|
|
|
|
WXK_(F20)
|
|
|
|
WXK_(F21)
|
|
|
|
WXK_(F22)
|
|
|
|
WXK_(F23)
|
|
|
|
WXK_(F24)
|
|
|
|
WXK_(NUMLOCK)
|
|
|
|
WXK_(SCROLL)
|
|
|
|
WXK_(PAGEUP)
|
|
|
|
WXK_(PAGEDOWN)
|
|
|
|
WXK_(NUMPAD_SPACE)
|
|
|
|
WXK_(NUMPAD_TAB)
|
|
|
|
WXK_(NUMPAD_ENTER)
|
|
|
|
WXK_(NUMPAD_F1)
|
|
|
|
WXK_(NUMPAD_F2)
|
|
|
|
WXK_(NUMPAD_F3)
|
|
|
|
WXK_(NUMPAD_F4)
|
|
|
|
WXK_(NUMPAD_HOME)
|
|
|
|
WXK_(NUMPAD_LEFT)
|
|
|
|
WXK_(NUMPAD_UP)
|
|
|
|
WXK_(NUMPAD_RIGHT)
|
|
|
|
WXK_(NUMPAD_DOWN)
|
|
|
|
WXK_(NUMPAD_PAGEUP)
|
|
|
|
WXK_(NUMPAD_PAGEDOWN)
|
|
|
|
WXK_(NUMPAD_END)
|
|
|
|
WXK_(NUMPAD_BEGIN)
|
|
|
|
WXK_(NUMPAD_INSERT)
|
|
|
|
WXK_(NUMPAD_DELETE)
|
|
|
|
WXK_(NUMPAD_EQUAL)
|
|
|
|
WXK_(NUMPAD_MULTIPLY)
|
|
|
|
WXK_(NUMPAD_ADD)
|
|
|
|
WXK_(NUMPAD_SEPARATOR)
|
|
|
|
WXK_(NUMPAD_SUBTRACT)
|
|
|
|
WXK_(NUMPAD_DECIMAL)
|
|
|
|
WXK_(NUMPAD_DIVIDE)
|
|
|
|
#undef WXK_
|
2009-02-08 01:01:00 +00:00
|
|
|
default:
|
|
|
|
return NULL;
|
2002-04-07 18:08:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
// helper function that returns textual description of key in the event
|
|
|
|
wxString GetKeyName(const wxKeyEvent &event)
|
2002-04-07 18:08:25 +00:00
|
|
|
{
|
2008-06-07 15:24:49 +00:00
|
|
|
int keycode = event.GetKeyCode();
|
|
|
|
const char* virt = GetVirtualKeyCodeName(keycode);
|
|
|
|
if ( virt )
|
|
|
|
return virt;
|
|
|
|
if ( keycode > 0 && keycode < 27 )
|
|
|
|
return wxString::Format("Ctrl-%c", (unsigned char)('A' + keycode - 1));
|
|
|
|
if ( keycode >= 27 && keycode < 128 )
|
|
|
|
return wxString::Format("'%c'", (unsigned char)keycode);
|
2008-04-28 11:09:20 +00:00
|
|
|
#if wxUSE_UNICODE
|
2008-06-07 15:24:49 +00:00
|
|
|
return wxString::Format("'%c'", event.GetUnicodeKey());
|
|
|
|
#else
|
|
|
|
return "unknown";
|
2008-04-28 11:09:20 +00:00
|
|
|
#endif
|
2008-06-07 15:24:49 +00:00
|
|
|
}
|
|
|
|
|
2002-04-07 18:08:25 +00:00
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
void MyFrame::LogEvent(const wxString& name, wxKeyEvent& event)
|
|
|
|
{
|
2002-04-07 21:02:10 +00:00
|
|
|
wxString msg;
|
2009-02-08 01:01:00 +00:00
|
|
|
// event key_name KeyCode modifiers Unicode raw_code raw_flags
|
2008-06-07 15:24:49 +00:00
|
|
|
msg.Printf("%7s %15s %5d %c%c%c%c"
|
|
|
|
#if wxUSE_UNICODE
|
|
|
|
"%5d (U+%04x)"
|
|
|
|
#else
|
|
|
|
" none "
|
|
|
|
#endif
|
|
|
|
#ifdef wxHAS_RAW_KEY_CODES
|
|
|
|
" %7lu 0x%lx"
|
|
|
|
#else
|
|
|
|
" not-set not-set"
|
|
|
|
#endif
|
|
|
|
"\n",
|
2002-04-07 21:02:10 +00:00
|
|
|
name,
|
2008-06-07 15:24:49 +00:00
|
|
|
GetKeyName(event),
|
|
|
|
event.GetKeyCode(),
|
|
|
|
event.ControlDown() ? 'C' : '-',
|
|
|
|
event.AltDown() ? 'A' : '-',
|
|
|
|
event.ShiftDown() ? 'S' : '-',
|
2008-07-19 05:33:36 +00:00
|
|
|
event.MetaDown() ? 'M' : '-'
|
2008-06-07 15:24:49 +00:00
|
|
|
#if wxUSE_UNICODE
|
2008-07-19 05:33:36 +00:00
|
|
|
, event.GetUnicodeKey()
|
|
|
|
, event.GetUnicodeKey()
|
2008-06-07 15:24:49 +00:00
|
|
|
#endif
|
|
|
|
#ifdef wxHAS_RAW_KEY_CODES
|
2008-07-19 05:33:36 +00:00
|
|
|
, (unsigned long) event.GetRawKeyCode()
|
|
|
|
, (unsigned long) event.GetRawKeyFlags()
|
2008-06-07 15:24:49 +00:00
|
|
|
#endif
|
|
|
|
);
|
2002-04-07 21:02:10 +00:00
|
|
|
|
2008-06-07 15:24:49 +00:00
|
|
|
m_logText->AppendText(msg);
|
2002-04-07 18:08:25 +00:00
|
|
|
|
|
|
|
if ( m_skip )
|
|
|
|
event.Skip();
|
|
|
|
}
|
2008-06-07 15:24:49 +00:00
|
|
|
|
|
|
|
|