Enum wezterm_input_types::PhysKeyCode
source · pub enum PhysKeyCode {
Show 120 variants
A,
B,
Backslash,
C,
CapsLock,
Comma,
D,
Backspace,
DownArrow,
E,
End,
Equal,
Escape,
F,
F1,
F10,
F11,
F12,
F13,
F14,
F15,
F16,
F17,
F18,
F19,
F2,
F20,
F21,
F22,
F23,
F24,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
Delete,
Function,
G,
Grave,
H,
Help,
Home,
I,
Insert,
J,
K,
K0,
K1,
K2,
K3,
K4,
K5,
K6,
K7,
K8,
K9,
Keypad0,
Keypad1,
Keypad2,
Keypad3,
Keypad4,
Keypad5,
Keypad6,
Keypad7,
Keypad8,
Keypad9,
KeypadClear,
KeypadDecimal,
KeypadDelete,
KeypadDivide,
KeypadEnter,
KeypadEquals,
KeypadSubtract,
KeypadMultiply,
KeypadAdd,
L,
LeftAlt,
LeftArrow,
LeftBracket,
LeftControl,
LeftShift,
LeftWindows,
M,
Minus,
VolumeMute,
N,
NumLock,
O,
P,
PageDown,
PageUp,
Period,
Q,
Quote,
R,
Return,
RightAlt,
RightArrow,
RightBracket,
RightControl,
RightShift,
RightWindows,
S,
Semicolon,
Slash,
Space,
T,
Tab,
U,
UpArrow,
V,
VolumeDown,
VolumeUp,
W,
X,
Y,
Z,
}
Expand description
These keycodes identify keys based on their physical position on an ANSI-standard US keyboard.
Variants§
A
B
Backslash
C
CapsLock
Comma
D
Backspace
DownArrow
E
End
Equal
Escape
F
F1
F10
F11
F12
F13
F14
F15
F16
F17
F18
F19
F2
F20
F21
F22
F23
F24
F3
F4
F5
F6
F7
F8
F9
Delete
Function
G
Grave
H
Help
Home
I
Insert
J
K
K0
K1
K2
K3
K4
K5
K6
K7
K8
K9
Keypad0
Keypad1
Keypad2
Keypad3
Keypad4
Keypad5
Keypad6
Keypad7
Keypad8
Keypad9
KeypadClear
KeypadDecimal
KeypadDelete
KeypadDivide
KeypadEnter
KeypadEquals
KeypadSubtract
KeypadMultiply
KeypadAdd
L
LeftAlt
LeftArrow
LeftBracket
LeftControl
LeftShift
LeftWindows
M
Minus
VolumeMute
N
NumLock
O
P
PageDown
PageUp
Period
Q
Quote
R
Return
RightAlt
RightArrow
RightBracket
RightControl
RightShift
RightWindows
S
Semicolon
Slash
Space
T
Tab
U
UpArrow
V
VolumeDown
VolumeUp
W
X
Y
Z
Implementations§
source§impl PhysKeyCode
impl PhysKeyCode
pub fn is_modifier(&self) -> bool
pub fn to_key_code(self) -> KeyCode
Trait Implementations§
source§impl Clone for PhysKeyCode
impl Clone for PhysKeyCode
source§fn clone(&self) -> PhysKeyCode
fn clone(&self) -> PhysKeyCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PhysKeyCode
impl Debug for PhysKeyCode
source§impl<'de> Deserialize<'de> for PhysKeyCode
impl<'de> Deserialize<'de> for PhysKeyCode
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
source§impl FromDynamic for PhysKeyCode
impl FromDynamic for PhysKeyCode
fn from_dynamic( value: &Value, options: FromDynamicOptions ) -> Result<Self, Error>
source§impl Hash for PhysKeyCode
impl Hash for PhysKeyCode
source§impl Ord for PhysKeyCode
impl Ord for PhysKeyCode
source§fn cmp(&self, other: &PhysKeyCode) -> Ordering
fn cmp(&self, other: &PhysKeyCode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PhysKeyCode
impl PartialEq for PhysKeyCode
source§fn eq(&self, other: &PhysKeyCode) -> bool
fn eq(&self, other: &PhysKeyCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PhysKeyCode
impl PartialOrd for PhysKeyCode
source§fn partial_cmp(&self, other: &PhysKeyCode) -> Option<Ordering>
fn partial_cmp(&self, other: &PhysKeyCode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for PhysKeyCode
impl Serialize for PhysKeyCode
source§impl ToDynamic for PhysKeyCode
impl ToDynamic for PhysKeyCode
fn to_dynamic(&self) -> Value
source§impl ToString for PhysKeyCode
impl ToString for PhysKeyCode
source§impl TryFrom<&str> for PhysKeyCode
impl TryFrom<&str> for PhysKeyCode
impl Copy for PhysKeyCode
impl Eq for PhysKeyCode
impl StructuralEq for PhysKeyCode
impl StructuralPartialEq for PhysKeyCode
Auto Trait Implementations§
impl RefUnwindSafe for PhysKeyCode
impl Send for PhysKeyCode
impl Sync for PhysKeyCode
impl Unpin for PhysKeyCode
impl UnwindSafe for PhysKeyCode
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