-
Notifications
You must be signed in to change notification settings - Fork 295
Open
Labels
Description
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?
lucidBrot and MrGibus