bevy/crates/bevy_input_focus
Alice Cecile d8796ae8b6
Polish and improve docs for bevy_input_focus (#16887)
# Objective

`bevy_input_focus` needs some love before we ship it to users. There's a
few missing helper methods, the docs could be improved, and `AutoFocus`
should be more generally available.

## Solution

The changes here are broken down by commit, and should generally be
uncontroversial. The ones to focus on during review are:

- Make navigate take a & InputFocus argument: this makes the intended
pattern clearer to users
- Remove TabGroup requirement from `AutoFocus`: I want auto-focusing
even with gamepad-style focus navigation!
- Handle case where tab group is None more gracefully: I think we can
try harder to provide something usable, and shouldn't just fail to
navigate

## Testing

The `tab_navigation` example continues to work.
2024-12-18 20:29:26 +00:00
..
src Polish and improve docs for bevy_input_focus (#16887) 2024-12-18 20:29:26 +00:00
Cargo.toml Tab navigation framework for bevy_input_focus. (#16795) 2024-12-16 23:54:53 +00:00
README.md

Bevy Input Focus

License Crates.io Downloads Docs Discord