From 82a27fd3aaf78cafc4bec2ef18729f225ad8fefb Mon Sep 17 00:00:00 2001 From: omar Date: Mon, 16 Oct 2017 02:06:42 +0200 Subject: [PATCH] Nav: InputText: Fixed using Up/Down history callback feature when Nav is enabled (#787) --- imgui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index abcbd54ae..2d7896957 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -9094,6 +9094,8 @@ bool ImGui::InputTextEx(const char* label, char* buf, int buf_size, const ImVec2 // Down the line we should have a cleaner library-wide concept of Selected vs Active. g.ActiveIdAllowOverlap = !io.MouseDown[0]; g.WantTextInputNextFrame = 1; + if (flags & ImGuiInputTextFlags_CallbackHistory) + g.ActiveIdAllowNavDirFlags &= ~((1 << ImGuiDir_Up) | (1 << ImGuiDir_Down)); // Edit in progress const float mouse_x = (io.MousePos.x - frame_bb.Min.x - style.FramePadding.x) + edit_state.ScrollX;