pub enum FocusKind {
Text {
model: String,
multiline: bool,
text: Option<PaintText>,
},
Activate {
on_tap: String,
},
Select {
model: String,
options: Vec<String>,
},
}Variants§
Text
A text / textarea input: focusing it starts caret editing.
Activate
A button / checkbox / radio: Space or Enter runs its handler.
Select
A select: Space or Enter opens its dropdown.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FocusKind
impl RefUnwindSafe for FocusKind
impl Send for FocusKind
impl Sync for FocusKind
impl Unpin for FocusKind
impl UnsafeUnpin for FocusKind
impl UnwindSafe for FocusKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more