[−]Enum druid::Code
Code is the physical position of a key.
The names are based on the US keyboard. If the key is not present on US keyboards a name from another layout is used.
Specification: https://w3c.github.io/uievents-code/
Variants
`~
on a US keyboard. This is the 半角/全角/漢字
(hankaku/zenkaku/kanji) key on Japanese keyboards
Used for both the US |
(on the 101-key layout) and also for the key
located between the "
and Enter
keys on row C of the 102-,
104- and 106-key layouts.
Labelled #~
on a UK (102) keyboard.
[{
on a US keyboard.
]}
on a US keyboard.
,<
on a US keyboard.
0)
on a US keyboard.
1!
on a US keyboard.
2@
on a US keyboard.
3#
on a US keyboard.
4$
on a US keyboard.
5%
on a US keyboard.
6^
on a US keyboard.
7&
on a US keyboard.
8*
on a US keyboard.
9(
on a US keyboard.
=+
on a US keyboard.
Located between the left Shift
and Z
keys.
Labelled |
on a UK keyboard.
Located between the /
and right Shift
keys.
Labelled \ろ
(ro) on a Japanese keyboard.
Located between the =
and Backspace
keys.
Labelled ¥
(yen) on a Japanese keyboard. /
on a
Russian keyboard.
a
on a US keyboard.
Labelled q
on an AZERTY (e.g., French) keyboard.
b
on a US keyboard.
c
on a US keyboard.
d
on a US keyboard.
e
on a US keyboard.
f
on a US keyboard.
g
on a US keyboard.
h
on a US keyboard.
i
on a US keyboard.
j
on a US keyboard.
k
on a US keyboard.
l
on a US keyboard.
m
on a US keyboard.
n
on a US keyboard.
o
on a US keyboard.
p
on a US keyboard.
q
on a US keyboard.
Labelled a
on an AZERTY (e.g., French) keyboard.
r
on a US keyboard.
s
on a US keyboard.
t
on a US keyboard.
u
on a US keyboard.
v
on a US keyboard.
w
on a US keyboard.
Labelled z
on an AZERTY (e.g., French) keyboard.
x
on a US keyboard.
y
on a US keyboard.
Labelled z
on a QWERTZ (e.g., German) keyboard.
z
on a US keyboard.
Labelled w
on an AZERTY (e.g., French) keyboard, and y
on a
QWERTZ (e.g., German) keyboard.
-_
on a US keyboard.
.>
on a US keyboard.
'"
on a US keyboard.
;:
on a US keyboard.
/?
on a US keyboard.
Alt
, Option
or ⌥
.
Alt
, Option
or ⌥
.
This is labelled AltGr
key on many keyboard layouts.
Backspace
or ⌫
.
Labelled Delete
on Apple keyboards.
CapsLock
or ⇪
The application context menu key, which is typically found between the right Meta
key and the right Control
key.
Control
or ⌃
Control
or ⌃
Enter
or ↵
. Labelled Return
on Apple keyboards.
The Windows, ⌘
, Command
or other OS symbol key.
The Windows, ⌘
, Command
or other OS symbol key.
Shift
or ⇧
Shift
or ⇧
(space)
Tab
or ⇥
Japanese: 変換
(henkan)
Japanese: カタカナ/ひらがな/ローマ字
(katakana/hiragana/romaji)
Korean: HangulMode 한/영
(han/yeong)
Japanese (Mac keyboard): かな
(kana)
Korean: Hanja 한자
(hanja)
Japanese (Mac keyboard): 英数
(eisu)
Japanese (word-processing keyboard): Katakana
Japanese (word-processing keyboard): Hiragana
Japanese (word-processing keyboard): Zenkaku/Hankaku
Japanese: 無変換
(muhenkan)
⌦
. The forward delete key.
Note that on Apple keyboards, the key labelled Delete
on the main part of
the keyboard should be encoded as "Backspace"
.
Page Down
, End
or ↘
Help
. Not present on standard PC keyboards.
Home
or ↖
Insert
or Ins
. Not present on Apple keyboards.
Page Down
, PgDn
or ⇟
Page Up
, PgUp
or ⇞
↓
←
→
↑
On the Mac, the "NumLock"
code should be used for the numpad Clear
key.
0 Ins
on a keyboard0
on a phone or remote control
1 End
on a keyboard1
or 1 QZ
on a phone or
remote control
2 ↓
on a keyboard2 ABC
on a phone or remote control
3 PgDn
on a keyboard3 DEF
on a phone or remote control
4 ←
on a keyboard4 GHI
on a phone or remote control
5
on a keyboard5 JKL
on a phone or remote control
6 →
on a keyboard6 MNO
on a phone or remote control
7 Home
on a keyboard7 PQRS
or 7 PRS
on a phone
or remote control
8 ↑
on a keyboard8 TUV
on a phone or remote control
9 PgUp
on a keyboard9 WXYZ
or 9 WXY
on a phone
or remote control
+
Found on the Microsoft Natural Keyboard.
C
or AC
(All Clear). Also for use with numpads that have a Clear
key that is separate from the NumLock
key. On the Mac, the numpad Clear
key should always
be encoded as "NumLock"
.
CE
(Clear Entry)
,
(thousands separator). For locales where the thousands separator
is a "." (e.g., Brazil), this key may generate a .
.
. Del
. For locales where the decimal separator is "," (e.g.,
Brazil), this key may generate a ,
.
/
=
#
on a phone or remote control device. This key is typically found
below the 9
key and to the right of the 0
key.
M+
Add current entry to the value stored in memory.
MC
Clear the value stored in memory.
MR
Replace the current entry with the value stored in memory.
MS
Replace the value stored in memory with the current entry.
M-
Subtract current entry from the value stored in memory.
on a keyboard. For use with numpads that provide mathematical
operations (
+
, -
, and
/
).
Use "NumpadStar"
for the *
key on phones and remote controls.
(
Found on the Microsoft Natural Keyboard.
)
Found on the Microsoft Natural Keyboard.
on a phone or remote control device.
This key is typically found below the
7
key and to the left of
the 0
key.
Use "NumpadMultiply"
for the key on
numeric keypads.
-
Esc
or ⎋
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
Fn
This is typically a hardware key that does not generate a separate
code. Most keyboards do not place this key in the function section, but it is
included here to keep it with related keys.
FLock
or FnLock
. Function Lock key. Found on the Microsoft
Natural Keyboard.
PrtScr SysRq
or Print Screen
Scroll Lock
Pause Break
Some laptops place this key to the left of the ↑
key.
Some laptops place this key to the right of the ↑
key.
Eject
or ⏏
. This key is placed in the function
section on some Apple keyboards.
Sometimes labelled My Computer
on the keyboard
Sometimes labelled Calculator
on the keyboard
This key is placed in the function section on some Apple keyboards,
replacing the Eject
key.
Found on Sun’s USB keyboard.
Found on Sun’s USB keyboard.
Found on Sun’s USB keyboard.
Found on Sun’s USB keyboard.
Found on Sun’s USB keyboard.
Found on Sun’s USB keyboard.
Found on Sun’s USB keyboard.
Found on Sun’s USB keyboard.
Found on Sun’s USB keyboard.
Use for dedicated ひらがな
key found on some Japanese word processing keyboards.
Use for dedicated カタカナ
key found on some Japanese word processing keyboards.
This value code should be used when no other value given in this specification is appropriate.
Trait Implementations
impl Clone for Code
pub fn clone(&self) -> Code
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Code
impl Debug for Code
impl Default for Code
impl Display for Code
impl Eq for Code
impl Hash for Code
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Code> for Code
impl StructuralEq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations
impl RefUnwindSafe for Code
[src]
impl Send for Code
[src]
impl Sync for Code
[src]
impl Unpin for Code
[src]
impl UnwindSafe for Code
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AnyEq for T where
T: PartialEq<T> + Any,
[src]
T: PartialEq<T> + Any,
pub fn equals(&self, other: &(dyn Any + 'static)) -> bool
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub 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> RoundFrom<T> for T
pub fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
pub fn round_into(self) -> U
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,