fix(gui): in comment dialog insert new line at current caret position (#2706)

This commit is contained in:
Skylot
2025-12-03 19:32:52 +00:00
parent 365e258180
commit 39e7b82353
@@ -128,7 +128,7 @@ public class CommentDialog extends CommonDialog {
switch (e.getKeyCode()) {
case KeyEvent.VK_ENTER:
if (e.isShiftDown() || e.isControlDown()) {
commentArea.append("\n");
commentArea.insert("\n", commentArea.getCaretPosition());
} else {
apply();
}