Reenable shift-enter in the translation assistant

Newlines in the text are converted to \N, so no reason not to allow it
there.

Closes #1691.
This commit is contained in:
Thomas Goyne 2014-01-11 07:47:19 -08:00
parent 5088f96f93
commit 3551d7d5a9
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ DialogTranslation::DialogTranslation(agi::Context *c)
translated_text->SetMarginWidth(1, 0);
translated_text->SetFocus();
translated_text->Bind(wxEVT_CHAR_HOOK, &DialogTranslation::OnKeyDown, this);
translated_text->CmdKeyAssign(wxSTC_KEY_RETURN, wxSTC_SCMOD_SHIFT, wxSTC_CMD_NEWLINE);
wxSizer *translated_box = new wxStaticBoxSizer(wxVERTICAL, this, _("Translation"));
translated_box->Add(translated_text, 1, wxEXPAND, 0);