Skip to content

Add Memory::move_focus#7476

Merged
emilk merged 2 commits intoemilk:mainfrom
darkwater:focus_direction
Sep 4, 2025
Merged

Add Memory::move_focus#7476
emilk merged 2 commits intoemilk:mainfrom
darkwater:focus_direction

Conversation

@darkwater
Copy link
Copy Markdown
Contributor

  • I have followed the instructions in the PR template

This allows us to programatically move focus around. Another way would be to inject arrow key inputs, but that requires the backend to implement a way to do that, and could have unintended side-effects.

@emilk emilk added the egui label Sep 4, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 4, 2025

Preview available at https://egui-pr-preview.github.io/pr/7476-focusdirection
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@emilk emilk merged commit 3a2094e into emilk:main Sep 4, 2025
26 checks passed
Masterchef365 pushed a commit to Masterchef365/egui that referenced this pull request Apr 3, 2026
<!--
Please read the "Making a PR" section of
[`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/main/CONTRIBUTING.md)
before opening a Pull Request!

* Keep your PR:s small and focused.
* The PR title is what ends up in the changelog, so make it descriptive!
* If applicable, add a screenshot or gif.
* If it is a non-trivial addition, consider adding a demo for it to
`egui_demo_lib`, or a new example.
* Do NOT open PR:s from your `master` branch, as that makes it hard for
maintainers to test and add commits to your PR.
* Remember to run `cargo fmt` and `cargo clippy`.
* Open the PR as a draft until you have self-reviewed it and run
`./scripts/check.sh`.
* When you have addressed a PR comment, mark it as resolved.

Please be patient! I will review your PR, but my time is limited!
-->

* [X] I have followed the instructions in the PR template

This allows us to programatically move focus around. Another way would
be to inject arrow key inputs, but that requires the backend to
implement a way to do that, and could have unintended side-effects.

Co-authored-by: Emil Ernerfeldt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants