PhysicalKey Enumeration

Represents a keyboard physical key.

Definition

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public enum PhysicalKey

Remarks

The names follow the W3C codes: https://www.w3.org/TR/uievents-code/

Members

None0 Represents no key.
Backquote1`~ on a US keyboard. This is the 半角/全角/漢字 (hankaku/zenkaku/kanji) key on Japanese keyboards.
Backslash2 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. #~ on a UK (102) keyboard.
BracketLeft3[{ on a US keyboard.
BracketRight4]} on a US keyboard.
Comma5,< on a US keyboard.
Digit060) on a US keyboard.
Digit171! on a US keyboard.
Digit282@ on a US keyboard.
Digit393# on a US keyboard.
Digit4104$ on a US keyboard.
Digit5115% on a US keyboard.
Digit6126^ on a US keyboard.
Digit7137& on a US keyboard.
Digit8148* on a US keyboard.
Digit9159( on a US keyboard.
Equal16=+ on a US keyboard.
IntlBackslash17 Located between the left Shift and Z keys. \| on a UK keyboard.
IntlRo18 Located between the / and right Shift keys. \ろ (ro) on a Japanese keyboard.
IntlYen19 Located between the = and Backspace keys. ¥ (yen) on a Japanese keyboard. \/ on a Russian keyboard.
A20a on a US keyboard. q on an AZERTY (e.g., French) keyboard.
B21b on a US keyboard.
C22c on a US keyboard.
D23d on a US keyboard.
E24e on a US keyboard.
F25f on a US keyboard.
G26g on a US keyboard.
H27h on a US keyboard.
I28i on a US keyboard.
J29j on a US keyboard.
K30k on a US keyboard.
L31l on a US keyboard.
M32m on a US keyboard.
N33n on a US keyboard.
O34o on a US keyboard.
P35p on a US keyboard.
Q36q on a US keyboard. a on an AZERTY (e.g., French) keyboard.
R37r on a US keyboard.
S38s on a US keyboard.
T39t on a US keyboard.
U40u on a US keyboard.
V41v on a US keyboard.
W42w on a US keyboard. z on an AZERTY (e.g., French) keyboard.
X43x on a US keyboard.
Y44y on a US keyboard. z on a QWERTZ (e.g., German) keyboard.
Z45z on a US keyboard. w on an AZERTY (e.g., French) keyboard. y on a QWERTZ (e.g., German) keyboard.
Minus46-_ on a US keyboard.
Period47.> on a US keyboard.
Quote48'" on a US keyboard.
Semicolon49;: on a US keyboard.
Slash50/? on a US keyboard.
AltLeft51Alt, Option or .
AltRight52Alt, Option or . This is labelled AltGr key on many keyboard layouts.
Backspace53Backspace or . Labelled Delete on Apple keyboards.
CapsLock54CapsLock or .
ContextMenu55 The application context menu key, which is typically found between the right Meta key and the right Control key.
ControlLeft56Control or .
ControlRight57Control or .
Enter58Enter or . Labelled Return on Apple keyboards.
MetaLeft59 The (Windows), , Command or other OS symbol key.
MetaRight60 The (Windows), , Command or other OS symbol key.
ShiftLeft61Shift or .
ShiftRight62Shift or .
Space63 (space).
Tab64Tab or .
Convert65 Japanese: 変換 (henkan).
KanaMode66 Japanese: カタカナ/ひらがな/ローマ字 (katakana/hiragana/romaji).
Lang167 Korean: HangulMode 한/영 (han/yeong). Japanese (Mac keyboard): かな (kana).
Lang268 Korean: Hanja 한자 (hanja). Japanese (Mac keyboard): 英数 (eisu).
Lang369 Japanese (word-processing keyboard): Katakana.
Lang470 Japanese (word-processing keyboard): Hiragana.
Lang571 Japanese (word-processing keyboard): Zenkaku/Hankaku.
NonConvert72 Japanese: 無変換 (muhenkan).
Delete73. The forward delete key. Note that on Apple keyboards, the key labelled Delete on the main part of the keyboard is Backspace.
End74End or .
Help75Help. Not present on standard PC keyboards.
Home76Home or .
Insert77Insert or Ins. Not present on Apple keyboards.
PageDown78Page Down, PgDn or .
PageUp79Page Up, PgUp or .
ArrowDown80.
ArrowLeft81.
ArrowRight82.
ArrowUp83.
NumLock84 Numeric keypad Num Lock. On the Mac, this is used for the numpad Clear key.
NumPad085 Numeric keypad 0 Ins on a keyboard. 0 on a phone or remote control.
NumPad186 Numeric keypad 1 End on a keyboard. 1 or 1 QZ on a phone or remote control.
NumPad287 Numeric keypad 2 ↓ on a keyboard. 2 ABC on a phone or remote control.
NumPad388 Numeric keypad 3 PgDn on a keyboard. 3 DEF on a phone or remote control.
NumPad489 Numeric keypad 4 ← on a keyboard. 4 GHI on a phone or remote control.
NumPad590 Numeric keypad 5 on a keyboard. 5 JKL on a phone or remote control.
NumPad691 Numeric keypad 6 → on a keyboard. 6 MNO on a phone or remote control.
NumPad792 Numeric keypad 7 Home on a keyboard. 7 PQRS or 7 PRS on a phone or remote control.
NumPad893 Numeric keypad 8 ↑ on a keyboard. 8 TUV on a phone or remote control.
NumPad994 Numeric keypad 9 PgUp on a keyboard. 9 WXYZ or 9 WXY on a phone or remote control.
NumPadAdd95 Numeric keypad +.
NumPadClear96 Numeric keypad 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 is NumLock.
NumPadComma97 Numeric keypad , (thousands separator). For locales where the thousands separator is a "." (e.g., Brazil), this key may generate a ..
NumPadDecimal98 Numeric keypad . Del. For locales where the decimal separator is "," (e.g., Brazil), this key may generate a ,.
NumPadDivide99 Numeric keypad /.
NumPadEnter100 Numeric keypad Enter.
NumPadEqual101 Numeric keypad =.
NumPadMultiply102 Numeric keypad * on a keyboard. For use with numpads that provide mathematical operations (+, -, * and /).
NumPadParenLeft103 Numeric keypad (. Found on the Microsoft Natural Keyboard.
NumPadParenRight104 Numeric keypad ). Found on the Microsoft Natural Keyboard.
NumPadSubtract105 Numeric keypad -.
Escape106Esc or .
F1107F1.
F2108F2.
F3109F3.
F4110F4.
F5111F5.
F6112F6.
F7113F7.
F8114F8.
F9115F9.
F10116F10.
F11117F11.
F12118F12.
F13119F13.
F14120F14.
F15121F15.
F16122F16.
F17123F17.
F18124F18.
F19125F19.
F20126F20.
F21127F21.
F22128F22.
F23129F23.
F24130F24.
PrintScreen131PrtScr SysRq or Print Screen.
ScrollLock132Scroll Lock.
Pause133Pause Break.
BrowserBack134 Browser Back. Some laptops place this key to the left of the key.
BrowserFavorites135 Browser Favorites.
BrowserForward136 Browser Forward. Some laptops place this key to the right of the key.
BrowserHome137 Browser Home.
BrowserRefresh138 Browser Refresh.
BrowserSearch139 Browser Search.
BrowserStop140 Browser Stop.
Eject141Eject or . This key is placed in the function section on some Apple keyboards.
LaunchApp1142App 1. Sometimes labelled My Computer on the keyboard.
LaunchApp2143App 2. Sometimes labelled Calculator on the keyboard.
LaunchMail144Mail.
MediaPlayPause145 Media Play/Pause or ⏵⏸.
MediaSelect146 Media Select.
MediaStop147 Media Stop or .
MediaTrackNext148 Media Next or .
MediaTrackPrevious149 Media Previous or .
Power150Power.
Sleep151Sleep.
AudioVolumeDown152Volume Down.
AudioVolumeMute153Mute.
AudioVolumeUp154Volume Up.
WakeUp155Wake Up.
Again156Again. Legacy. Found on Sun’s USB keyboard.
Copy157Copy. Legacy. Found on Sun’s USB keyboard.
Cut158Cut. Legacy. Found on Sun’s USB keyboard.
Find159Find. Legacy. Found on Sun’s USB keyboard.
Open160Open. Legacy. Found on Sun’s USB keyboard.
Paste161Paste. Legacy. Found on Sun’s USB keyboard.
Props162Props. Legacy. Found on Sun’s USB keyboard.
Select163Select. Legacy. Found on Sun’s USB keyboard.
Undo164Undo. Legacy. Found on Sun’s USB keyboard.

See Also