Docstring for app_focus_lost

This commit is contained in:
dbr 2022-03-22 20:36:51 +11:00
parent 5cd71fef4c
commit 7861355fe8

View File

@ -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<sys::ImWchar>,