diff --git a/crates/bevy_a11y/src/lib.rs b/crates/bevy_a11y/src/lib.rs index 92f514ab4513d..66b5d333bedde 100644 --- a/crates/bevy_a11y/src/lib.rs +++ b/crates/bevy_a11y/src/lib.rs @@ -21,6 +21,7 @@ use bevy_ecs::{ schedule::SystemSet, system::Resource, }; +use bevy_reflect::std_traits::ReflectDefault; use bevy_reflect::Reflect; /// Wrapper struct for [`accesskit::ActionRequest`]. Required to allow it to be used as an `Event`. @@ -94,7 +95,7 @@ impl From for AccessibilityNode { /// Resource representing which entity has keyboard focus, if any. #[derive(Resource, Default, Deref, DerefMut, Reflect)] -#[reflect(Resource)] +#[reflect(Resource, Default)] pub struct Focus(pub Option); /// Set enum for the systems relating to accessibility