pub fn get_focused() -> Option<WindowHandle>
Expand description
Gets a handle to the window with the current keyboard focus.
ยงExamples
if let Some(focused) = window::get_focused() {
println!("{}", focused.title());
}
pub fn get_focused() -> Option<WindowHandle>
Gets a handle to the window with the current keyboard focus.
if let Some(focused) = window::get_focused() {
println!("{}", focused.title());
}