From 3551d7d5a9e2b5afc55e534dd4cda6ac3fe13d07 Mon Sep 17 00:00:00 2001
From: Thomas Goyne <plorkyeran@aegisub.org>
Date: Sat, 11 Jan 2014 07:47:19 -0800
Subject: [PATCH] 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.
---
 aegisub/src/dialog_translation.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/aegisub/src/dialog_translation.cpp b/aegisub/src/dialog_translation.cpp
index a3241a121..60a70357c 100644
--- a/aegisub/src/dialog_translation.cpp
+++ b/aegisub/src/dialog_translation.cpp
@@ -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);
-- 
GitLab