pub enum Key {
}Variants§
Char(char)
Esc
Enter
Tab
Backspace
Delete
Left
Right
Up
Down
PageUp
PageDown
Home
End
Ctrl(char)
Alt(char)
F(u8)
A function key. Discarded at the door until now
(escriba-input: KeyCode::F(_) => return None), so <F5> could be
declared and never arrive.
Chord(Hotkey)
Anything the shorthands above cannot say: more than one modifier,
Shift as a modifier rather than a capital letter, Super/Cmd.
Ctrl(char) and Alt(char) fold the modifier INTO the key, so they
can carry exactly one. The translator has always computed all four
modifier flags and then thrown shift and meta away for want of
somewhere to put them; this is that somewhere.
Carries awase::Hotkey directly rather than a parallel spelling —
escriba’s vocabulary widens by consuming the fleet’s, not by growing
a fifth one.
Trait Implementations§
impl Copy for Key
Source§impl<'de> Deserialize<'de> for Key
impl<'de> Deserialize<'de> for Key
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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