pub enum InteractionModality {
None,
Keyboard,
Pointer,
Virtual,
}Expand description
How the user is currently interacting with the page.
Focus rings are only shown for keyboard users, and screen reader users (a “virtual” modality) need focus moved after transitions rather than during them. The modality is detected from global input events, exactly like the upstream implementation.
Variants§
None
No interaction has been recorded yet.
Keyboard
Keyboard navigation: show focus rings.
Pointer
Mouse, touch, or pen interaction: hide focus rings.
Virtual
Screen reader or other assistive technology focus.
Trait Implementations§
Source§impl Clone for InteractionModality
impl Clone for InteractionModality
impl Copy for InteractionModality
Source§impl Debug for InteractionModality
impl Debug for InteractionModality
Source§impl Default for InteractionModality
impl Default for InteractionModality
impl Eq for InteractionModality
Source§impl PartialEq for InteractionModality
impl PartialEq for InteractionModality
impl StructuralPartialEq for InteractionModality
Auto Trait Implementations§
impl Freeze for InteractionModality
impl RefUnwindSafe for InteractionModality
impl Send for InteractionModality
impl Sync for InteractionModality
impl Unpin for InteractionModality
impl UnsafeUnpin for InteractionModality
impl UnwindSafe for InteractionModality
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.