From 7861355fe84d2055faa21bb3f8c8b16e99e7372c Mon Sep 17 00:00:00 2001 From: dbr Date: Tue, 22 Mar 2022 20:36:51 +1100 Subject: [PATCH] Docstring for app_focus_lost --- imgui/src/io.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imgui/src/io.rs b/imgui/src/io.rs index 4bf8ba1..50f8975 100644 --- a/imgui/src/io.rs +++ b/imgui/src/io.rs @@ -339,6 +339,10 @@ pub struct Io { nav_inputs_down_duration: [f32; NavInput::COUNT + NavInput::INTERNAL_COUNT], nav_inputs_down_duration_prev: [f32; NavInput::COUNT + NavInput::INTERNAL_COUNT], pen_pressure: f32, + + /// Clear buttons state when focus is lost (this is useful so + /// e.g. releasing Alt after focus loss on Alt-Tab doesn't trigger + /// the Alt menu toggle) pub app_focus_lost: bool, input_queue_surrogate: sys::ImWchar16, input_queue_characters: ImVector,