pub enum Key {
Show 15 variants
Escape,
Return,
Tab,
Space,
Delete,
DeleteForward,
Clear,
UpArrow,
DownArrow,
LeftArrow,
RightArrow,
Home,
End,
PageUp,
PageDown,
}Expand description
A named key, as SwiftUI.KeyEquivalent’s statics spell it.
These are the keys a shortcut is usually hung on. A KeyEquivalent also
wraps any Character, but its initialiser is inlinable and exports
nothing, so the named ones are what can be reached.
Variants§
Escape
Return
Tab
Space
Delete
DeleteForward
Clear
UpArrow
DownArrow
LeftArrow
RightArrow
Home
End
PageUp
PageDown
Trait Implementations§
impl Copy for Key
impl Eq for Key
Source§impl From<DeleteForward> for Key
impl From<DeleteForward> for Key
Source§fn from(_: DeleteForward) -> Self
fn from(_: DeleteForward) -> Self
Converts to this type from the input type.
Source§impl From<RightArrow> for Key
impl From<RightArrow> for Key
Source§fn from(_: RightArrow) -> Self
fn from(_: RightArrow) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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