Implement focus_previous operation
This commit is contained in:
parent
54ad92ce91
commit
6eb3dd7e5e
3 changed files with 60 additions and 12 deletions
|
|
@ -215,6 +215,14 @@ pub use svg::Svg;
|
|||
use crate::Command;
|
||||
use iced_native::widget::operation;
|
||||
|
||||
/// Focuses the previous focusable widget.
|
||||
pub fn focus_previous<Message>() -> Command<Message>
|
||||
where
|
||||
Message: 'static,
|
||||
{
|
||||
Command::widget(operation::focus_previous())
|
||||
}
|
||||
|
||||
/// Focuses the next focusable widget.
|
||||
pub fn focus_next<Message>() -> Command<Message>
|
||||
where
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue