Issue #386 - Fixed setting of hotkeys to enter.

Originally committed to SVN as r1469.
This commit is contained in:
Rodrigo Braz Monteiro 2007-08-04 09:23:21 +00:00
parent 9b282c8893
commit 53a95b3af2
2 changed files with 2 additions and 2 deletions

View file

@ -1023,7 +1023,7 @@ DialogInputHotkey::DialogInputHotkey(HotkeyType *_key,wxString name)
//////////////////////// ////////////////////////
// Capturer constructor // Capturer constructor
CaptureKey::CaptureKey(DialogInputHotkey *_parent) CaptureKey::CaptureKey(DialogInputHotkey *_parent)
: wxTextCtrl(_parent,-1,_T(""),wxDefaultPosition,wxSize(0,0)) : wxTextCtrl(_parent,-1,_T(""),wxDefaultPosition,wxSize(0,0),wxTE_PROCESS_ENTER | wxTE_PROCESS_TAB)
{ {
parent = _parent; parent = _parent;
SetFocus(); SetFocus();

View file

@ -1220,7 +1220,7 @@ void FrameMain::StatusTimeout(wxString text,int ms) {
// Setup accelerator table // Setup accelerator table
void FrameMain::SetAccelerators() { void FrameMain::SetAccelerators() {
std::vector<wxAcceleratorEntry> entry; std::vector<wxAcceleratorEntry> entry;
entry.reserve(20); entry.reserve(32);
// Standard // Standard
entry.push_back(Hotkeys.GetAccelerator(_T("Video global prev frame"),Video_Prev_Frame)); entry.push_back(Hotkeys.GetAccelerator(_T("Video global prev frame"),Video_Prev_Frame));