Skip to content

Tab between TextBoxes #606

@psFried

Description

@psFried

I think it would be nice to be able to move between text boxes just using the keyboard by hitting tab or enter. I've got something hacked together that works, but it's really ugly, and it seems like there must be a better way. Can anyone think of a non-hacky way to implement this?

Ideally, something like Ui::force_focus_on(&mut self, idx: Into<Index>) would be possible, where idx would refer to the widget to focus on. Something like, TextBox::steal_focus(mut self) would also work. That is about what I have right now, but like I said, it doesn't feel like the cleanest implementation. Any ideas for a better approach?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions