ImGui: Pressing Enter after closing Console window closes ImGui
Closed this issue · 0 comments
Create a new ImGui window and add a "DragFloat" via AddDragFloat. Double-clicking in this control allows you to enter a number with your keyboard. After entering a number, it feels natural to hit Enter to finalize your selection.
If the Console window is open then Enter doesn't close ImgGui.
However, if the Console window has been closed, Enter in this other window closes ImGui. (Technically, in this case, it doesn't matter if you're editing the control. Simply hitting Enter after the Console window has been closed closes ImGui, but you wouldn't normally do something like that unless you're editing a control.)
The behavior is confusing and inconsistent. It would be preferable if editing a control didn't cause ImGui to close.