pub enum ShortcutKey {
}Expand description
A key a shortcut can be bound to — a general vocabulary, unlike
Key, which is the one text editing needs.
Variants§
Char(char)
A printable key, matched case-insensitively: Ctrl+S and Ctrl+s are the
same shortcut, and the caller should not have to think about Caps Lock.
Enter
Enter / Return.
Escape
Escape.
Tab
Tab.
Space
Space.
Backspace
Backspace.
Delete
Forward delete.
Up
Arrow up.
Down
Arrow down.
Left
Arrow left.
Right
Arrow right.
Home
Home.
End
End.
PageUp
Page up.
PageDown
Page down.
F(u8)
A function key, F(1) through F(24).
Trait Implementations§
Source§impl Clone for ShortcutKey
impl Clone for ShortcutKey
impl Copy for ShortcutKey
Source§impl Debug for ShortcutKey
impl Debug for ShortcutKey
impl Eq for ShortcutKey
Source§impl PartialEq for ShortcutKey
impl PartialEq for ShortcutKey
impl StructuralPartialEq for ShortcutKey
Auto Trait Implementations§
impl Freeze for ShortcutKey
impl RefUnwindSafe for ShortcutKey
impl Send for ShortcutKey
impl Sync for ShortcutKey
impl Unpin for ShortcutKey
impl UnsafeUnpin for ShortcutKey
impl UnwindSafe for ShortcutKey
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