pub enum InputModality {
Keyboard,
Pointer,
}Expand description
What the user last gave a surface input with
(EngineControl::set_input_modality): the core shows the keyboard focus
(focus-visible:) by it, as browsers decide CSS’s :focus-visible.
Variants§
Keyboard
A key press (not a modifier alone): Tab, an arrow, a shortcut, typing, from a hardware keyboard.
Pointer
A mouse button, a pen or a finger going down.
Trait Implementations§
Source§impl Clone for InputModality
impl Clone for InputModality
impl Copy for InputModality
Source§impl Debug for InputModality
impl Debug for InputModality
impl Eq for InputModality
Source§impl PartialEq for InputModality
impl PartialEq for InputModality
impl StructuralPartialEq for InputModality
Auto Trait Implementations§
impl Forget for InputModality
impl Freeze for InputModality
impl Move for InputModality
impl RefUnwindSafe for InputModality
impl Send for InputModality
impl Sync for InputModality
impl Unpin for InputModality
impl UnsafeUnpin for InputModality
impl UnwindSafe for InputModality
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