From a5ac77368cb25bb420a0bea28b707c4178f9dc87 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 26 Nov 2012 07:38:50 -0800 Subject: [PATCH] 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. --- aegisub/src/timeedit_ctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/timeedit_ctrl.cpp b/aegisub/src/timeedit_ctrl.cpp index fa8b76fe7..e5946d666 100644 --- a/aegisub/src/timeedit_ctrl.cpp +++ b/aegisub/src/timeedit_ctrl.cpp @@ -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); }