widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #11891
[Merge] lp:~widelands-dev/widelands/bug-1699778-multilineeditbox-handle-key-enter into lp:widelands
Jukka Pakarinen has proposed merging lp:~widelands-dev/widelands/bug-1699778-multilineeditbox-handle-key-enter into lp:widelands.
Requested reviews:
Widelands Developers (widelands-dev)
Related bugs:
Bug #1699778 in widelands: "Multilineeditbox: Advance cursor to the next line when enter is hit at the end of the string being edited"
https://bugs.launchpad.net/widelands/+bug/1699778
For more details, see:
https://code.launchpad.net/~widelands-dev/widelands/bug-1699778-multilineeditbox-handle-key-enter/+merge/334683
The change in the branch fixes the bug 1699778.
--
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug-1699778-multilineeditbox-handle-key-enter into lp:widelands.
=== modified file 'src/ui_basic/multilineeditbox.cc'
--- src/ui_basic/multilineeditbox.cc 2017-09-20 21:27:25 +0000
+++ src/ui_basic/multilineeditbox.cc 2017-12-04 16:56:11 +0000
@@ -375,6 +375,7 @@
case SDLK_KP_ENTER:
case SDLK_RETURN:
d_->insert(d_->cursor_pos, "\n");
+ d_->update();
changed();
break;
Follow ups