|
@@ -4944,7 +4944,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_
|
|
{
|
|
{
|
|
// Determine if we turn Enter into a \n character
|
|
// Determine if we turn Enter into a \n character
|
|
bool ctrl_enter_for_new_line = (flags & ImGuiInputTextFlags_CtrlEnterForNewLine) != 0;
|
|
bool ctrl_enter_for_new_line = (flags & ImGuiInputTextFlags_CtrlEnterForNewLine) != 0;
|
|
- if (!is_multiline || is_gamepad_validate || (ctrl_enter_for_new_line && !io.KeyCtrl) || (!ctrl_enter_for_new_line && io.KeyCtrl))
|
|
|
|
|
|
+ if (!is_multiline || is_gamepad_validate || (ctrl_enter_for_new_line != io.KeyCtrl))
|
|
{
|
|
{
|
|
validated = true;
|
|
validated = true;
|
|
if (io.ConfigInputTextEnterKeepActive && !is_multiline)
|
|
if (io.ConfigInputTextEnterKeepActive && !is_multiline)
|