Silas Bartha 8514c007d5
All checks were successful
Build / Build (push) Successful in 59m0s
Widget focus
2025-03-27 19:06:53 -04:00

8 lines
298 B
Rust

use bevy::prelude::*;
/// Terminal widget entity currently focused and handling input
/// Can be manipulated directly or you can request an entity be focused through
/// the `focus_widget` command.
#[derive(Resource, Default, Deref, DerefMut, Debug)]
pub struct FocusedWidget(pub Option<Entity>);