Skip to content

Conversation

@Shatur
Copy link
Contributor

@Shatur Shatur commented Jan 6, 2026

Objective

  • Right now you can't do the the following:
focus.set_if_neq(InputFocus(Some(trigger.entity)));

Solution

  • Derive PartialEq for InputFocus

Useful to allow the following: ```rust
focus.set_if_neq(InputFocus(Some(trigger.entity))); ```
@Shatur Shatur requested a review from alice-i-cecile January 6, 2026 11:04
@Shatur Shatur added this to the 0.18 milestone Jan 6, 2026
@greeble-dev greeble-dev added C-Feature A new feature, making something new possible D-Trivial Nice and easy! A great choice to get started with Bevy A-Text Rendering and layout for characters S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jan 6, 2026
@mnmaita mnmaita added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jan 6, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jan 6, 2026
Merged via the queue into bevyengine:main with commit c5c5e01 Jan 6, 2026
49 checks passed
cart pushed a commit that referenced this pull request Jan 8, 2026
# Objective

- Right now you can't do the the following:
```rust
focus.set_if_neq(InputFocus(Some(trigger.entity)));
```

## Solution

- Derive `PartialEq` for `InputFocus`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Text Rendering and layout for characters C-Feature A new feature, making something new possible D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants