Skip to main content

PhysicalKey Enumeration

Represents a keyboard physical key.

Definition

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public enum PhysicalKey
View Source

Remarks

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

Members

None0Represents no key.
Backquote1`~ on a US keyboard. This is the 半角/全角/漢字 (hankaku/zenkaku/kanji) key on Japanese keyboards.
Backslash2Used 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.
IntlBackslash17Located between the left Shift and Z keys. | on a UK keyboard.
IntlRo18Located between the / and right Shift keys. \ろ (ro) on a Japanese keyboard.
IntlYen19Located 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 .
ContextMenu55The 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.
MetaLeft59The (Windows), , Command or other OS symbol key.
MetaRight60The (Windows), , Command or other OS symbol key.
ShiftLeft61Shift or .
ShiftRight62Shift or .
Space63 (space).
Tab64Tab or .
Convert65Japanese: 変換 (henkan).
KanaMode66Japanese: カタカナ/ひらがな/ローマ字 (katakana/hiragana/romaji).
Lang167Korean: HangulMode 한/영 (han/yeong). Japanese (Mac keyboard): かな (kana).
Lang268Korean: Hanja 한자 (hanja). Japanese (Mac keyboard): 英数 (eisu).
Lang369Japanese (word-processing keyboard): Katakana.
Lang470Japanese (word-processing keyboard): Hiragana.
Lang571Japanese (word-processing keyboard): Zenkaku/Hankaku.
NonConvert72Japanese: 無変換 (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.
NumLock84Numeric keypad Num Lock. On the Mac, this is used for the numpad Clear key.
NumPad085Numeric keypad 0 Ins on a keyboard. 0 on a phone or remote control.
NumPad186Numeric keypad 1 End on a keyboard. 1 or 1 QZ on a phone or remote control.
NumPad287Numeric keypad 2 ↓ on a keyboard. 2 ABC on a phone or remote control.
NumPad388Numeric keypad 3 PgDn on a keyboard. 3 DEF on a phone or remote control.
NumPad489Numeric keypad 4 ← on a keyboard. 4 GHI on a phone or remote control.
NumPad590Numeric keypad 5 on a keyboard. 5 JKL on a phone or remote control.
NumPad691Numeric keypad 6 → on a keyboard. 6 MNO on a phone or remote control.
NumPad792Numeric keypad 7 Home on a keyboard. 7 PQRS or 7 PRS on a phone or remote control.
NumPad893Numeric keypad 8 ↑ on a keyboard. 8 TUV on a phone or remote control.
NumPad994Numeric keypad 9 PgUp on a keyboard. 9 WXYZ or 9 WXY on a phone or remote control.
NumPadAdd95Numeric keypad +.
NumPadClear96Numeric 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.
NumPadComma97Numeric keypad , (thousands separator). For locales where the thousands separator is a "." (e.g., Brazil), this key may generate a ..
NumPadDecimal98Numeric keypad . Del. For locales where the decimal separator is "," (e.g., Brazil), this key may generate a ,.
NumPadDivide99Numeric keypad /.
NumPadEnter100Numeric keypad Enter.
NumPadEqual101Numeric keypad =.
NumPadMultiply102Numeric keypad * on a keyboard. For use with numpads that provide mathematical operations (+, -, * and /).
NumPadParenLeft103Numeric keypad (. Found on the Microsoft Natural Keyboard.
NumPadParenRight104Numeric keypad ). Found on the Microsoft Natural Keyboard.
NumPadSubtract105Numeric 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.
BrowserBack134Browser Back. Some laptops place this key to the left of the key.
BrowserFavorites135Browser Favorites.
BrowserForward136Browser Forward. Some laptops place this key to the right of the key.
BrowserHome137Browser Home.
BrowserRefresh138Browser Refresh.
BrowserSearch139Browser Search.
BrowserStop140Browser 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.
MediaPlayPause145Media Play/Pause or ⏵⏸.
MediaSelect146Media Select.
MediaStop147Media Stop or .
MediaTrackNext148Media Next or .
MediaTrackPrevious149Media 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

Reference

Avalonia.Input Namespace