Function dispatch_focused_input

Source
pub fn dispatch_focused_input<E: Event + Clone>(
    key_events: EventReader<'_, '_, E>,
    focus: Res<'_, InputFocus>,
    windows: Query<'_, '_, Entity, With<PrimaryWindow>>,
    commands: Commands<'_, '_>,
)
Expand description

System which dispatches bubbled input events to the focused entity, or to the primary window if no entity has focus.