forked from mia/Aegisub
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:
parent
1d15bf273a
commit
77eaedd611
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue