Stats panel stays up to date when cards change;

Shift+Enter inserts soft line break in text editor (TODO: cursor is moved incorrectly)

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@508 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-07-06 16:32:17 +00:00
parent 1ca8c9ec99
commit b3d0d69437
3 changed files with 40 additions and 5 deletions
+6 -1
View File
@@ -192,7 +192,12 @@ bool TextValueEditor::onChar(wxKeyEvent& ev) {
break;
case WXK_RETURN:
if (field().multi_line) {
replaceSelection(_("\n"), _("Enter"));
if (ev.ShiftDown()) {
// soft line break
replaceSelection(_("<soft-line>\n</soft-line>"), _("Soft line break"));
} else {
replaceSelection(_("\n"), _("Enter"));
}
}
break;
default: