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.
This commit is contained in:
Thomas Goyne 2012-04-13 22:27:56 +00:00
parent 1d15bf273a
commit 77eaedd611

View file

@ -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;
}