Skip to content
Extraits de code Groupes Projets
Valider 3551d7d5 rédigé par Thomas Goyne's avatar Thomas Goyne
Parcourir les fichiers

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.
parent 5088f96f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -96,6 +96,7 @@ DialogTranslation::DialogTranslation(agi::Context *c) ...@@ -96,6 +96,7 @@ DialogTranslation::DialogTranslation(agi::Context *c)
translated_text->SetMarginWidth(1, 0); translated_text->SetMarginWidth(1, 0);
translated_text->SetFocus(); translated_text->SetFocus();
translated_text->Bind(wxEVT_CHAR_HOOK, &DialogTranslation::OnKeyDown, this); 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")); wxSizer *translated_box = new wxStaticBoxSizer(wxVERTICAL, this, _("Translation"));
translated_box->Add(translated_text, 1, wxEXPAND, 0); translated_box->Add(translated_text, 1, wxEXPAND, 0);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter