Show / Hide Table of Contents

Enum Key

Specifies the values for each virtual key.

Namespace: System.Windows.Input
Assembly: OpenSilver.dll
Syntax
public enum Key

Fields

Name Description
A

The letter "A" key.

Accept

The accept button or key.

Add

The add (+) operation key as located on a numeric pad.

Alt

The menu key or button.

Application

The application key or button.

B

The letter "B" key.

Back

The virtual back key or button.

C

The letter "C" key.

Cancel

The cancel key or button.

CapsLock

The Caps Lock key or button.

Clear

The Clear key or button.

Convert

The convert button or key.

Ctrl

The Ctrl key. This is the general Ctrl case, applicable to key layouts with only one Ctrl key or that do not need to differentiate between left Ctrl and right Ctrl keystrokes.

D

The letter "D" key.

D0

The number "0" key.

D1

The number "1" key.

D2

The number "2" key.

D3

The number "3" key.

D4

The number "4" key.

D5

The number "5" key.

D6

The number "6" key.

D7

The number "7" key.

D8

The number "8" key.

D9

The number "9" key.

Decimal

The decimal (.) key as located on a numeric pad.

Delete

The Delete key.

Divide

The divide (/) operation key as located on a numeric pad.

Down

The Down Arrow key.

E

The letter "E" key.

End

The End key.

Enter

The Enter key.

Escape

The Esc key.

Execute

The execute key or button.

F

The letter "F" key.

F1

The F1 function key.

F10

The F10 function key.

F11

The F11 function key.

F12

The F12 function key.

F13

The F13 function key.

F14

The F14 function key.

F15

The F15 function key.

F16

The F16 function key.

F17

The F17 function key.

F18

The F18 function key.

F19

The F19 function key.

F2

The F2 function key.

F20

The F20 function key.

F21

The F21 function key.

F22

The F22 function key.

F23

The F23 function key.

F24

The F24 function key.

F3

The F3 function key.

F4

The F4 function key.

F5

The F5 function key.

F6

The F6 function key.

F7

The F7 function key.

F8

The F8 function key.

F9

The F9 function key.

Final

The Final symbol key-shift button.

G

The letter "G" key.

H

The letter "H" key.

Hangul

The Hangul symbol key-shift button.

Hanja

The Hanja symbol key shift button.

Help

The Help key or button.

Home

The Home key.

I

The letter "I" key.

Insert

The Insert key.

J

The letter "J" key.

Junja

The Junja symbol key-shift button.

K

The letter "K" key.

Kana

The Kana symbol key-shift button.

Kanji

The Kanji symbol key-shift button.

L

The letter "L" key.

Left

The Left Arrow key.

LeftButton

The left mouse button.

LeftWindows

The left Windows key.

M

The letter "M" key.

MiddleButton

The middle mouse button.

ModeChange

The mode change key.

Multiply

The multiply (*) operation key as located on a numeric pad.

N

The letter "N" key.

NonConvert

The nonconvert button or key.

None

No virtual key value.

NumberKeyLock

The Num Lock key.

NumPad0

The number "0" key as located on a numeric pad.

NumPad1

The number "1" key as located on a numeric pad.

NumPad2

The number "2" key as located on a numeric pad.

NumPad3

The number "3" key as located on a numeric pad.

NumPad4

The number "4" key as located on a numeric pad.

NumPad5

The number "5" key as located on a numeric pad.

NumPad6

The number "6" key as located on a numeric pad.

NumPad7

The number "7" key as located on a numeric pad.

NumPad8

The number "8" key as located on a numeric pad.

NumPad9

The number "9" key as located on a numeric pad.

O

The letter "O" key.

P

The letter "P" key.

PageDown

The Page Down key.

PageUp

The Page Up key.

Pause

The Pause key or button.

Print

The Print key or button.

Q

The letter "Q" key.

R

The letter "R" key.

Right

The Right Arrow key.

RightButton

The right mouse button.

RightWindows

The right Windows key.

S

The letter "S" key.

Scroll

The Scroll Lock (ScrLk) key.

Select

The Select key or button.

Separator

The separator key as located on a numeric pad.

Shift

The Shift key. This is the general Shift case, applicable to key layouts with only one Shift key or that do not need to differentiate between left Shift and right Shift keystrokes.

Sleep

The sleep key or button.

Snapshot

The snapshot key or button.

Space

The Spacebar key or button.

Subtract

The subtract (-) operation key as located on a numeric pad.

T

The letter "T" key.

Tab

The Tab key.

U

The letter "U" key.

Unknown

An unknown key.

Up

The Up Arrow key.

V

The letter "V" key.

W

The letter "W" key.

X

The letter "X" key.

XButton1

An additional "extended" device key or button (for example, an additional mouse button).

XButton2

An additional "extended" device key or button (for example, an additional mouse button).

Y

The letter "Y" key.

Z

The letter "Z" key.

  • Improve this Doc
  • View Source