[−][src]Enum wooting_sdk::Key
Represents a key on the keyboard.
Variants
Escape key (Esc
). Generates the escape character (ASCII 27).
Function key (F1
). Normally programmed to cause an operating system or application to
perform certain actions.
Function key (F2
). Normally programmed to cause an operating system or application to
perform certain actions.
Function key (F3
). Normally programmed to cause an operating system or application to
perform certain actions.
Function key (F4
). Normally programmed to cause an operating system or application to
perform certain actions.
Function key (F5
). Normally programmed to cause an operating system or application to
perform certain actions.
Function key (F6
). Normally programmed to cause an operating system or application to
perform certain actions.
Function key (F7
). Normally programmed to cause an operating system or application to
perform certain actions.
Function key (F8
). Normally programmed to cause an operating system or application to
perform certain actions.
Function key (F9
). Normally programmed to cause an operating system or application to
perform certain actions.
Function key (F10
). Normally programmed to cause an operating system or application to
perform certain actions.
Function key (F11
). Normally programmed to cause an operating system or application to
perform certain actions.
Function key (F12
). Normally programmed to cause an operating system or application to
perform certain actions.
Print screen key (Prt Sc
). May share the same key as system request. Normally takes a
screenshot.
Pause (or break) key. Has no well defined purpose.
Scroll lock key (Scr Lk
). Has different functions or purposes depending on the
application or operating system. Originally intended to make arrow keys scroll the current
window contents instead of moving the cursor.
Analog profile key (A1
). Switches to analog profile one.
Analog profile key (A2
). Switches to analog profile two.
Analog profile key (A3
). Switches to analog profile three.
Mode key. Toggles between digital and analog modes.
Tilde key (~
).
Number one key (1
).
Number two key (2
).
Number three key (3
).
Number four key (4
).
Number five key (5
).
Number six key (6
).
Number seven key (7
).
Number eight key (8
).
Number nine key (9
).
Number zero key (0
).
Dash or hyphen key (-
).
Equals key (=
).
Backspace key. Moves display cursor one position backwards, deleting the character at that position and shifting back the text after that position by one position.
Insert key (Ins
). Switches between two text entry modes - overtype or insert. Overtype
mode replaces the character present in the current location. Insert mode inserts a
character at the current position, forcing all characters past it one position further.
Home key. Has the opposite effect of the end key.
Page up key (Pg Up
). Scrolls up in documents.
Number lock key (Num
). Affects the function of the numeric keypad located to the right
of the main keyboard.
Divide key on the numpad (/
). Types a forward slash or acts as a divison key in
calculator applications.
Multiply key on the numpad (*
). Types a star or acts as a multiplication key in
calculator applications.
Subtract key on the numpad (-
). Types a dash or acts as a subtraction key in
calculator applications.
Tab key. Advances cursor to next tab stop.
Letter q
key.
Letter w
key.
Letter e
key.
Letter r
key.
Letter t
key.
Letter y
key.
Letter u
key.
Letter i
key.
Letter o
key.
Letter p
key.
Left square bracket key ([
).
Right square bracket key (]
).
Backslash key (\
).
Delete key (Del
). Deletes the character in the position after the cursor.
End key. Has the opposite effect of the home key.
Page down key (Pg Dn
). Scrolls down in documents.
Number seven key (7
) on the numpad.
Number eight key (8
) on the numpad.
Number nine key (9
) on the numpad.
Addition key on the numpad (+
). Types a plus or acts as a addition key in calculator
applications.
Capitalization lock key. Causes all letters in latin-based scripts to be generated in capitals.
Letter a
key.
Letter s
key.
Letter d
key.
Letter f
key.
Letter g
key.
Letter h
key.
Letter j
key.
Letter k
key.
Letter l
key.
Semi-colon key (;
).
Apostrophe key ('
).
Represents a key that is specific to the keyboard layout. This key is positioned above
the return key or to the left of the return key. On UK layouts, this is a pound (#
) key.
On US layouts, this is a backslash key. This key has the same scan index as the backslash
key.
Return (or enter) key.
Number four key (4
) on the numpad.
Number five key (5
) on the numpad.
Number six key (6
) on the numpad.
Left shift modifier key. Used to type capital letters and other alternate "upper" characters.
Represents a key that is specific to the keyboard layout. This key is positioned to the right of the left shift key. On UK layouts, this is a backslash key. On US layouts, this key does not exist.
Letter z
key.
Letter x
key.
Letter c
key.
Letter v
key.
Letter b
key.
Letter n
key.
Letter m
key.
Comma key (,
).
Period key (.
).
Forward slash key (/
).
Right shift modifier key. Performs the same function as left shift.
Up arrow key. Moves the cursor in the upwards direction.
Number one key (1
) on the numpad.
Number two key (2
) on the numpad.
Number three key (3
) on the numpad.
Return (or enter) key on the numpad. Performs the same function as the normal return key.
Left control modifier key. Performs a special operation when pressed in conjunction with another key.
Left mod (or Windows) modifier key. Normally invokes the operating system's start menu.
Left alt modifier key. Used to change (alternate) the function of other pressed keys.
Space key (
).
Right alt modifier key. Performs the same function as left alt.
Right mod modifier key. Performs the same function as left mod.
Function key (Fn
). Performs an alternative operation for some keys, normally defined
by the keyboard and indicated by symbols on the key.
Right control modifier key. Performs the same function as left control.
Left arrow key. Moves the cursor in the left direction.
Down arrow key. Moves the cursor in the down direction.
Right arrow key. Moves the cursor in the right direction.
Number zero key (0
) on the numpad.
Delete key (Del
) on the numpad. Performs the same function as the normal delete key.
Trait Implementations
impl Clone for Key
[src]
impl Copy for Key
[src]
impl Debug for Key
[src]
impl Display for Key
[src]
impl Eq for Key
[src]
impl FromScanIndex for Key
[src]
fn from_scan_index(index: u8) -> Option<Self>
[src]
Return the key that corresponds to the provided scan index, if any.
impl Hash for Key
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IntoMatrixRowColumn for Key
[src]
fn into_matrix_row_and_column(&self) -> (u8, u8)
[src]
Returns a tuple (row, column)
that represents the matrix row and column of the key.
impl PartialEq<Key> for Key
[src]
impl StructuralEq for Key
[src]
impl StructuralPartialEq for Key
[src]
Auto Trait Implementations
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,