Tab navigation is broken?
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 9.7k
- Forks
- 565
- PR merge metrics
- No merged PRs in 30d
Description
Copying a conversation from zulip:
> Steven: I'm trying to add tab navigation to my program, so I added code to call register_for_focus on the WidgetAdded event as the docs recommended. However after doing so pressing tab still does nothing. Is there more I need to do? I added a print to verify that the call is definitely happening. commit making the change: https://github.com/smmalis37/sudoku_rust/commit/468ec62b5fb215822abc592a1d88b52bca228e05
> Raph Levien: From what you said, it sounds like you're doing the right thing. I think it just needs some digging into what's actually happening.
> Raph Levien: I think tab navigation might be broken, I'm seeing it not work in the examples :/
> Raph Levien: For example, in styled_text, it unfocuses the TextBox it's in, but doesn't focus the next one.
I couldn't find an issue tracking fixing tab focusing, so I made one.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported behavior in the styled_text example, where Tab unfocuses the TextBox but does not focus the next one. Review the focus handling around the WidgetAdded event and register_for_focus, then verify that pressing Tab moves focus between widgets in the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100