mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
InputText() consume input characters immediately (fixes #105)
This commit is contained in:
parent
e4f96147de
commit
34664dc28c
1 changed files with 3 additions and 0 deletions
|
|
@ -4883,6 +4883,9 @@ bool ImGui::InputText(const char* label, char* buf, size_t buf_size, ImGuiInputT
|
|||
edit_state.OnKeyPressed(c);
|
||||
}
|
||||
}
|
||||
|
||||
// Consume characters
|
||||
memset(g.IO.InputCharacters, 0, sizeof(g.IO.InputCharacters));
|
||||
}
|
||||
|
||||
edit_state.CursorAnim += g.IO.DeltaTime;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue