From f17af8487bb744a2679ffbc2be21e10b3b9cebf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Sejkora?= Date: Tue, 23 Nov 2021 23:10:27 +0100 Subject: [PATCH] Fix incorrectly copy-pasted documentation --- imgui/src/input_widget.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imgui/src/input_widget.rs b/imgui/src/input_widget.rs index 7865446..59e8c29 100644 --- a/imgui/src/input_widget.rs +++ b/imgui/src/input_widget.rs @@ -28,7 +28,8 @@ bitflags!( const CALLBACK_COMPLETION = sys::ImGuiInputTextFlags_CallbackCompletion; /// Call user function on pressing Up/Down arrows (for history handling) const CALLBACK_HISTORY = sys::ImGuiInputTextFlags_CallbackHistory; - /// Call user function on pressing Up/Down arrows (for history handling) + /// Callback on any edit (note that InputText() already returns true on edit, the callback + /// is useful mainly to manipulate the underlying buffer while focus is active) const CALLBACK_EDIT = sys::ImGuiInputTextFlags_CallbackEdit; /// Call user function every time. User code may query cursor position, modify text buffer. const CALLBACK_ALWAYS = sys::ImGuiInputTextFlags_CallbackAlways;