pub enum Key {
Show 145 variants
ArrowDown,
ArrowLeft,
ArrowRight,
ArrowUp,
Escape,
Tab,
Backspace,
Enter,
Space,
Insert,
Delete,
Home,
End,
PageUp,
PageDown,
Copy,
Cut,
Paste,
Colon,
Comma,
Backslash,
Slash,
Pipe,
Questionmark,
Exclamationmark,
OpenBracket,
CloseBracket,
OpenCurlyBracket,
CloseCurlyBracket,
Backtick,
Minus,
Period,
Plus,
Equals,
Semicolon,
Quote,
Num0,
Num1,
Num2,
Num3,
Num4,
Num5,
Num6,
Num7,
Num8,
Num9,
A,
B,
C,
D,
E,
F,
G,
H,
I,
J,
K,
L,
M,
N,
O,
P,
Q,
R,
S,
T,
U,
V,
W,
X,
Y,
Z,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
F13,
F14,
F15,
F16,
F17,
F18,
F19,
F20,
F21,
F22,
F23,
F24,
F25,
F26,
F27,
F28,
F29,
F30,
F31,
F32,
F33,
F34,
F35,
BrowserBack,
BrowserForward,
BrowserRefresh,
BrowserSearch,
BrowserHome,
BrowserFavorites,
BrowserStop,
MediaPlayPause,
MediaTrackNext,
MediaTrackPrevious,
MediaStop,
AudioVolumeMute,
AudioVolumeDown,
AudioVolumeUp,
LaunchMail,
LaunchApp1,
LaunchApp2,
ShiftLeft,
ShiftRight,
ControlLeft,
ControlRight,
AltLeft,
AltRight,
SuperLeft,
SuperRight,
IntlBackslash,
CapsLock,
NumLock,
ScrollLock,
PrintScreen,
Pause,
Menu,
Fn,
Eject,
Help,
Power,
Sleep,
Clear,
}Expand description
A logical key, independent of the physical keyboard layout.
§Example
use crisol_core::commands::Key;Variants§
ArrowDown
The Down key.
ArrowLeft
The Left key.
ArrowRight
The Right key.
ArrowUp
The Up key.
Escape
The Escape key.
Tab
The Tab key.
Backspace
The Backspace key.
Enter
The Enter key.
Space
The Space key.
Insert
The Insert key.
Delete
The Delete key.
Home
The Home key.
End
The End key.
PageUp
The PageUp key.
PageDown
The PageDown key.
Copy
The Copy key.
Cut
The Cut key.
Paste
The Paste key.
Colon
The Colon key.
Comma
The Comma key.
Backslash
The Backslash key.
Slash
The Slash key.
Pipe
The Pipe key.
Questionmark
The Questionmark key.
Exclamationmark
The Exclamationmark key.
OpenBracket
The OpenBracket key.
CloseBracket
The CloseBracket key.
OpenCurlyBracket
The OpenCurlyBracket key.
CloseCurlyBracket
The CloseCurlyBracket key.
Backtick
The Backtick key.
Minus
The Minus key.
Period
The Period key.
Plus
The Plus key.
Equals
The Equals key.
Semicolon
The Semicolon key.
Quote
The Quote key.
Num0
The 0 key.
Num1
The 1 key.
Num2
The 2 key.
Num3
The 3 key.
Num4
The 4 key.
Num5
The 5 key.
Num6
The 6 key.
Num7
The 7 key.
Num8
The 8 key.
Num9
The 9 key.
A
The A key.
B
The B key.
C
The C key.
D
The D key.
E
The E key.
F
The F key.
G
The G key.
H
The H key.
I
The I key.
J
The J key.
K
The K key.
L
The L key.
M
The M key.
N
The N key.
O
The O key.
P
The P key.
Q
The Q key.
R
The R key.
S
The S key.
T
The T key.
U
The U key.
V
The V key.
W
The W key.
X
The X key.
Y
The Y key.
Z
The Z key.
F1
The F1 key.
F2
The F2 key.
F3
The F3 key.
F4
The F4 key.
F5
The F5 key.
F6
The F6 key.
F7
The F7 key.
F8
The F8 key.
F9
The F9 key.
F10
The F10 key.
F11
The F11 key.
F12
The F12 key.
F13
The F13 key.
F14
The F14 key.
F15
The F15 key.
F16
The F16 key.
F17
The F17 key.
F18
The F18 key.
F19
The F19 key.
F20
The F20 key.
F21
The F21 key.
F22
The F22 key.
F23
The F23 key.
F24
The F24 key.
F25
The F25 key.
F26
The F26 key.
F27
The F27 key.
F28
The F28 key.
F29
The F29 key.
F30
The F30 key.
F31
The F31 key.
F32
The F32 key.
F33
The F33 key.
F34
The F34 key.
F35
The F35 key.
BrowserBack
The BrowserBack key.
BrowserForward
The BrowserForward key.
BrowserRefresh
The BrowserRefresh key.
BrowserSearch
The BrowserSearch key.
BrowserHome
The BrowserHome key.
BrowserFavorites
The BrowserFavorites key.
BrowserStop
The BrowserStop key.
MediaPlayPause
The MediaPlayPause key.
MediaTrackNext
The MediaTrackNext key.
MediaTrackPrevious
The MediaTrackPrevious key.
MediaStop
The MediaStop key.
AudioVolumeMute
The AudioVolumeMute key.
AudioVolumeDown
The AudioVolumeDown key.
AudioVolumeUp
The AudioVolumeUp key.
LaunchMail
The LaunchMail key.
LaunchApp1
The LaunchApp1 key.
LaunchApp2
The LaunchApp2 key.
ShiftLeft
The ShiftLeft key.
ShiftRight
The ShiftRight key.
ControlLeft
The ControlLeft key.
ControlRight
The ControlRight key.
AltLeft
The AltLeft key.
AltRight
The AltRight key.
SuperLeft
The SuperLeft key.
SuperRight
The SuperRight key.
IntlBackslash
The IntlBackslash key.
CapsLock
The CapsLock key.
NumLock
The NumLock key.
ScrollLock
The ScrollLock key.
PrintScreen
The PrintScreen key.
Pause
The Pause key.
Menu
The Menu key.
Fn
The Fn key.
Eject
The Eject key.
Help
The Help key.
Power
The Power key.
Sleep
The Sleep key.
Clear
The Clear key.
Implementations§
Trait Implementations§
impl Copy for Key
impl Eq for Key
Source§impl Ord for Key
impl Ord for Key
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Key
impl PartialOrd for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Forget for Key
impl Freeze for Key
impl Move 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§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more