Implement focus_next operation
... as well as a `count_focusable` composable helper!
This commit is contained in:
parent
6dac049db5
commit
77c6864e7c
4 changed files with 154 additions and 13 deletions
|
|
@ -211,3 +211,14 @@ pub use qr_code::QRCode;
|
|||
#[cfg(feature = "svg")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "svg")))]
|
||||
pub use svg::Svg;
|
||||
|
||||
use crate::Command;
|
||||
use iced_native::widget::operation;
|
||||
|
||||
/// Focuses the next focusable widget.
|
||||
pub fn focus_next<Message>() -> Command<Message>
|
||||
where
|
||||
Message: 'static,
|
||||
{
|
||||
Command::widget(operation::focus_next())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue