InputScalar / Unchanged value #4659
Replies: 2 comments 6 replies
-
Your identifier is very likely invalid. Please read the FAQ.
This is discussed in #701 and currently not possible. We have a InputText refactor lined up soonish which might facilitate further improvements. |
Beta Was this translation helpful? Give feedback.
-
Ok thanks I tried to add a 'Cancel' button to allow closing popup in such a case , but I think I have the same problem than this one : #134 If I'm using ImGui::SetKeyboardFocusHere(); for my input field, to allow direct focus when opening the popup , I cannot press the 'Cancel' button to close the window 😆 if (ImGui::GetWindowIsFocused() && !ImGui::IsAnyItemActive())
ImGui::SetKeyboardFocusHere(); |
Beta Was this translation helpful? Give feedback.
-
Hi ,
I'm using ImGui::InputScalar for some value editing in a popup :
and currently the condition is fulfilled when the value is changed AND Enter key is pressed.
Is it possible to validate only when Enter is pressed (an possible no value change so) ?
I looked in ImGuiInputTextFlags_ without finding a corresponding flag 🤔
Beta Was this translation helpful? Give feedback.
All reactions