pub enum NamedKey {
}Expand description
Well-known keys with stable names (arrows, editing keys, function keys).
§Examples
use ailloli_ui_core::event::NamedKey;
assert_eq!(NamedKey::F(12), NamedKey::F(12));
assert_eq!(NamedKey::Other("MediaPlay".into()), NamedKey::Other("MediaPlay".into()));Variants§
Backspace
Backspace editing key.
Delete
Forward-delete editing key.
Enter
Enter or Return activation key.
Tab
Tab navigation or text key.
Space
Space key when represented as a named key.
ArrowLeft
Left arrow navigation key.
ArrowRight
Right arrow navigation key.
ArrowUp
Up arrow navigation key.
ArrowDown
Down arrow navigation key.
Home
Home navigation key.
End
End navigation key.
PageUp
Page-up navigation key.
PageDown
Page-down navigation key.
Escape
Escape/cancel key.
Insert
Insert editing key.
F(u8)
Function key number supplied by the provider.
The conventional range is 1..=12, but this type does not enforce it.
Other(String)
Key not mapped to a known variant.
Trait Implementations§
impl Eq for NamedKey
impl StructuralPartialEq for NamedKey
Auto Trait Implementations§
impl Freeze for NamedKey
impl RefUnwindSafe for NamedKey
impl Send for NamedKey
impl Sync for NamedKey
impl Unpin for NamedKey
impl UnwindSafe for NamedKey
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