InputText: cleanup/rework old comments + remove unnecessary indent in callback and main block setting apply_new_text.

Amend 00f12b9a0, 3349296370 etc.
This commit is contained in:
ocornut
2026-03-16 18:42:28 +01:00
parent 16772365e2
commit 6464276b62
2 changed files with 90 additions and 98 deletions
+1
View File
@@ -1258,6 +1258,7 @@ struct IMGUI_API ImGuiInputTextState
void OnKeyPressed(int key); // Cannot be inline because we call in code in stb_textedit.h implementation
void OnCharPressed(unsigned int c);
float GetPreferredOffsetX() const;
const char* GetText() { return TextA.Data ? TextA.Data : ""; }
// Cursor & Selection
void CursorAnimReset();