pub enum FocusKind {
Widget,
TextEntry,
}Expand description
What kind of widget a focusable is, as far as the keyboard is concerned.
The distinction exists for one question: whether the keys arriving now are text. Key events are
broadcast, so an app-level shortcut handler and a focused field see the same press, and without this the
3 typed into a dimension field also fires the app’s 3 shortcut.
Variants§
Widget
Takes keys as commands: a button, a tab, a slider.
TextEntry
Takes keys as text: a field, an editor.
Trait Implementations§
impl Copy for FocusKind
impl Eq for FocusKind
impl StructuralPartialEq for FocusKind
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