Function get_focused

Source
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());
}