Proper handling of button focus

This commit is contained in:
Jeremy Soller 2024-02-29 15:38:03 -07:00
parent 8bbd2e7f95
commit c3934d9e56
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
3 changed files with 35 additions and 0 deletions

View file

@ -579,6 +579,9 @@ impl Application for App {
commands
.push(Command::batch([self.update_watcher(), self.rescan_tab()]));
}
tab::Command::FocusButton(id) => {
commands.push(widget::button::focus(id));
}
tab::Command::FocusTextInput(id) => {
commands.push(widget::text_input::focus(id));
}