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:
parent
5309f7fb9d
commit
a5ac77368c
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ TimeEdit::TimeEdit(wxWindow* parent, wxWindowID id, agi::Context *c, const wxStr
|
|||
Bind(wxEVT_COMMAND_MENU_SELECTED, std::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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue