mirror of https://github.com/odrling/Aegisub
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
d9b56badbf
commit
56447397a2
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue