cargo fmt --all

This commit is contained in:
dbr 2022-03-19 21:10:22 +11:00
parent 9648b40d85
commit 5cd71fef4c

View File

@ -941,14 +941,14 @@ impl WinitPlatform {
} }
_ => (), _ => (),
} }
}, }
WindowEvent::Focused(newly_focused) => { WindowEvent::Focused(newly_focused) => {
if !newly_focused { if !newly_focused {
// Set focus-lost to avoid stuck keys (like 'alt' // Set focus-lost to avoid stuck keys (like 'alt'
// when alt-tabbing) // when alt-tabbing)
io.app_focus_lost = true; io.app_focus_lost = true;
} }
}, }
_ => (), _ => (),
} }
} }