Skip to content

Commit

Permalink
Reflected traits for resources and components: bevy_a11y (#15192)
Browse files Browse the repository at this point in the history
Solves #15187 for the bevy_a11y
subcrate.
  • Loading branch information
blazepaws authored Sep 14, 2024
1 parent cf55e6c commit 583e034
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bevy_a11y/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -94,7 +95,7 @@ impl From<NodeBuilder> 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<Entity>);

/// Set enum for the systems relating to accessibility
Expand Down

0 comments on commit 583e034

Please sign in to comment.