#[non_exhaustive]pub struct KeyFocus {
pub editing: bool,
pub control: bool,
pub covered: bool,
}Expand description
Where the keyboard focus is as a key comes (Keymap::find_with).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.editing: boolA text input or hosted native view has it.
control: boolIt is on a control (a view that takes presses, not a text input)
in the focus scope: the newest modal over its window, else the
window. Return and Space are the control’s
(Keymap::find_at).
covered: boolIt is on a view the newest modal over its window covers: a focus the app left there (a popup closing gave it back to its trigger as a dialog opened). The keys are not that view’s.
Trait Implementations§
impl Copy for KeyFocus
impl Eq for KeyFocus
impl StructuralPartialEq for KeyFocus
Auto Trait Implementations§
impl Forget for KeyFocus
impl Freeze for KeyFocus
impl Move for KeyFocus
impl RefUnwindSafe for KeyFocus
impl Send for KeyFocus
impl Sync for KeyFocus
impl Unpin for KeyFocus
impl UnsafeUnpin for KeyFocus
impl UnwindSafe for KeyFocus
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