diff --git a/dependencies/subprojects/animationwindow/src/widgets/TextBox.cpp b/dependencies/subprojects/animationwindow/src/widgets/TextBox.cpp index 5a023dd77c148957bee3c2fe79a542b8f5f47db2..ac0a8fab67e10e053bd69763374d856c74590bc3 100644 --- a/dependencies/subprojects/animationwindow/src/widgets/TextBox.cpp +++ b/dependencies/subprojects/animationwindow/src/widgets/TextBox.cpp @@ -5,7 +5,7 @@ void TDT4102::TextBox::update(nk_context *context) { nk_style_push_color(context, &s->edit.text_normal, textColor); nk_style_push_color(context, &s->edit.border_color, borderColor); nk_style_push_style_item(context, &s->edit.normal, nk_style_item_color(boxColor)); - nk_edit_string_zero_terminated(context, NK_EDIT_READ_ONLY, const_cast<char*>(contents.data()), internal::TEXT_BOX_CHARACTER_LIMIT, nk_filter_ascii); + nk_edit_string_zero_terminated(context, NK_EDIT_READ_ONLY | NK_EDIT_MULTILINE, const_cast<char*>(contents.data()), internal::TEXT_BOX_CHARACTER_LIMIT, nk_filter_ascii); nk_style_pop_color(context); nk_style_pop_color(context); nk_style_pop_style_item(context); diff --git a/dependencies/subprojects/animationwindow/src/widgets/TextInput.cpp b/dependencies/subprojects/animationwindow/src/widgets/TextInput.cpp index a0edfc996dd44a3e779f1f2cc323061de733878e..f4adc0afff5a3c27119cdf52884cbe3f547e26b1 100644 --- a/dependencies/subprojects/animationwindow/src/widgets/TextInput.cpp +++ b/dependencies/subprojects/animationwindow/src/widgets/TextInput.cpp @@ -1,7 +1,7 @@ #include "widgets/TextInput.h" void TDT4102::TextInput::update(nk_context *context) { - nk_edit_string_zero_terminated(context, NK_EDIT_SELECTABLE | NK_EDIT_ALWAYS_INSERT_MODE | NK_EDIT_BOX | NK_EDIT_SIMPLE, const_cast<char*>(contents.data()), internal::TEXT_INPUT_CHARACTER_LIMIT, nk_filter_ascii); + nk_edit_string_zero_terminated(context, NK_EDIT_SELECTABLE | NK_EDIT_ALWAYS_INSERT_MODE | NK_EDIT_BOX | NK_EDIT_SIMPLE | NK_EDIT_MULTILINE, const_cast<char*>(contents.data()), internal::TEXT_INPUT_CHARACTER_LIMIT, nk_filter_ascii); // Detect whether any editing of the string has occurred // Nuklear only reports whether the text box has lost focus