Use EVT_CHAR_HOOK rather than EVT_KEY_DOWN in TimeEdit

With wxWidgets trunk keydown events are no longer generated for
Ctrl-C/X/V on Windows, which breaks the custom copy/paste handling.
This commit is contained in:
Thomas Goyne 2012-11-26 07:38:50 -08:00
parent d9b56badbf
commit 56447397a2
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ TimeEdit::TimeEdit(wxWindow* parent, wxWindowID id, agi::Context *c, const wxStr
Bind(wxEVT_COMMAND_MENU_SELECTED, std::tr1::bind(&TimeEdit::PasteTime, this), Time_Edit_Paste);
Bind(wxEVT_COMMAND_TEXT_UPDATED, &TimeEdit::OnModified, this);
Bind(wxEVT_CONTEXT_MENU, &TimeEdit::OnContextMenu, this);
Bind(wxEVT_KEY_DOWN, &TimeEdit::OnKeyDown, this);
Bind(wxEVT_CHAR_HOOK, &TimeEdit::OnKeyDown, this);
Bind(wxEVT_KILL_FOCUS, &TimeEdit::OnFocusLost, this);
}