mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user