#[non_exhaustive]pub enum Key {
}Expand description
The subset of keys the framework itself reacts to; everything else is
forwarded as Character or Other for widgets to interpret.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Enter
Enter or Return.
Space
Space bar.
Tab
Tab (focus traversal).
Escape
Escape.
Backspace
Backspace (delete before the caret).
Delete
Forward delete (delete after the caret).
Home
Home (start of line).
End
End (end of line).
ArrowLeft
Left arrow.
ArrowRight
Right arrow.
ArrowUp
Up arrow.
ArrowDown
Down arrow.
PageUp
Page Up.
PageDown
Page Down.
Character(String)
Text produced by the key, already composed with modifiers and layout.
Other(String)
Any other named key, by its platform name.
Trait Implementations§
impl Eq for Key
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