Version/Branch of Dear ImGui:
Version: v1.88
Branch: master
My Issue/Question:
In any input widget, pressing the escape key currently has a hard-wired behavior: It removes the last-added portion of the text. It's debatable if that behavior is correct - other programs usually delete the entire input. However the greater problem is that this behavior can neither be changed nor disabled. It's not altered by ImGuiWindowFlags_NoNavInputs for example, but rather fixed behavior in imgui_widgets.cpp.
This makes it impracticable to use the escape key for more advanced logic. For example I was planning to delete the current selected input if it's not empty, and go back to a menu window otherwise. But this collides with imgui's own logic that clears an input field - but only if it's the first input - a nightmare to reverse-engineer and couteract.
I would welcome any way to mitigate this - could be hiding this behind a flag or whatever.
Version/Branch of Dear ImGui:
Version: v1.88
Branch: master
My Issue/Question:
In any input widget, pressing the escape key currently has a hard-wired behavior: It removes the last-added portion of the text. It's debatable if that behavior is correct - other programs usually delete the entire input. However the greater problem is that this behavior can neither be changed nor disabled. It's not altered by
ImGuiWindowFlags_NoNavInputsfor example, but rather fixed behavior in imgui_widgets.cpp.This makes it impracticable to use the escape key for more advanced logic. For example I was planning to delete the current selected input if it's not empty, and go back to a menu window otherwise. But this collides with imgui's own logic that clears an input field - but only if it's the first input - a nightmare to reverse-engineer and couteract.
I would welcome any way to mitigate this - could be hiding this behind a flag or whatever.