From 77eaedd61154bd8f246c7bb9ea3562a85eccbb28 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 13 Apr 2012 22:27:56 +0000 Subject: [PATCH] Use wxEVT_CHAR_HOOK rather than wxEVT_KEY_DOWN in the hotkey editor so that hotkeys can be set to Esc Originally committed to SVN as r6697. --- aegisub/src/preferences.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/preferences.cpp b/aegisub/src/preferences.cpp index 2fd1e86ba..ab5653390 100644 --- a/aegisub/src/preferences.cpp +++ b/aegisub/src/preferences.cpp @@ -340,7 +340,7 @@ public: ctrl = new wxTextCtrl(parent, -1, var.GetString(), label_rect.GetPosition(), label_rect.GetSize(), wxTE_PROCESS_ENTER); ctrl->SetInsertionPointEnd(); ctrl->SelectAll(); - ctrl->Bind(wxEVT_KEY_DOWN, &HotkeyRenderer::OnKeyDown, this); + ctrl->Bind(wxEVT_CHAR_HOOK, &HotkeyRenderer::OnKeyDown, this); return ctrl; }