Shift times: Make Enter in the time edit do the same as clicking OK

Originally committed to SVN as r6944.
This commit is contained in:
cantabile 2012-07-24 02:39:40 +00:00 committed by Thomas Goyne
parent 5ecb89eeec
commit 7bd7ef7cd6
1 changed files with 1 additions and 0 deletions

View File

@ -194,6 +194,7 @@ DialogShiftTimes::DialogShiftTimes(agi::Context *context)
Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogShiftTimes::Process, this, wxID_OK); Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogShiftTimes::Process, this, wxID_OK);
Bind(wxEVT_COMMAND_BUTTON_CLICKED, std::tr1::bind(&HelpButton::OpenPage, "Shift Times"), wxID_HELP); Bind(wxEVT_COMMAND_BUTTON_CLICKED, std::tr1::bind(&HelpButton::OpenPage, "Shift Times"), wxID_HELP);
shift_time->Bind(wxEVT_COMMAND_TEXT_ENTER, &DialogShiftTimes::Process, this);
history_box->Bind(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, &DialogShiftTimes::OnHistoryClick, this); history_box->Bind(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, &DialogShiftTimes::OnHistoryClick, this);
context->selectionController->AddSelectionListener(this); context->selectionController->AddSelectionListener(this);
} }