Udostępnij za pośrednictwem


Key Struct

Definition

Key that can be used as a command's shortcut key.

[Newtonsoft.Json.JsonConverter(typeof(Microsoft.VisualStudio.Extensibility.Commands.Key+Converter))]
public struct Key : IEquatable<Microsoft.VisualStudio.Extensibility.Commands.Key>
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.VisualStudio.Extensibility.Commands.Key+Converter))>]
type Key = struct
Public Structure Key
Implements IEquatable(Of Key)
Inheritance
Key
Attributes
Newtonsoft.Json.JsonConverterAttribute
Implements

Properties

A
B
Backspace
Break
C
CapsLock
Clear
D
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
Delete
Down
E
End
Enter
Escape
F
F1
F10
F11
F12
F13
F14
F15
F16
F2
F3
F4
F5
F6
F7
F8
F9
G
H
Help
Home
I
Insert
J
K
L
Left
M
N
None

Empty key.

NumLock
O
P
PageDown
PageUp
Period
PrintScreen
Q
R
Right
S
ScrollLock
Space
T
Tab
U
Up
V
VK_0
VK_1
VK_2
VK_3
VK_4
VK_5
VK_6
VK_7
VK_8
VK_9
VK_ACCEPT
VK_ADD
VK_APPS
VK_ATTN
VK_BACK
VK_BROWSER_BACK
VK_BROWSER_FAVORITES
VK_BROWSER_FORWARD
VK_BROWSER_HOME
VK_BROWSER_REFRESH
VK_BROWSER_SEARCH
VK_BROWSER_STOP
VK_CANCEL
VK_CAPITAL
VK_CLEAR
VK_CONVERT
VK_CRSEL
VK_DECIMAL
VK_DELETE
VK_DIVIDE
VK_DOWN
VK_END
VK_EREOF
VK_ESCAPE
VK_EXECUTE
VK_EXSEL
VK_F1
VK_F10
VK_F11
VK_F12
VK_F13
VK_F14
VK_F15
VK_F16
VK_F17
VK_F18
VK_F19
VK_F2
VK_F20
VK_F21
VK_F22
VK_F23
VK_F24
VK_F3
VK_F4
VK_F5
VK_F6
VK_F7
VK_F8
VK_F9
VK_FINAL
VK_HANGUEL
VK_HANGUL
VK_HANJA
VK_HELP
VK_HOME
VK_INSERT
VK_JUNJA
VK_KANA
VK_KANJI
VK_LAUNCH_APP1
VK_LAUNCH_APP2
VK_LAUNCH_MAIL
VK_LAUNCH_MEDIA_SELECT
VK_LBUTTON

Virtual key codes that are supported as key bindings.

VK_LEFT
VK_LMENU
VK_LWIN
VK_MBUTTON
VK_MEDIA_NEXT_TRACK
VK_MEDIA_PLAY_PAUSE
VK_MEDIA_PREV_TRACK
VK_MEDIA_STOP
VK_MODECHANGE
VK_MULTIPLY
VK_NEXT
VK_NONAME
VK_NONCONVERT
VK_NUMLOCK
VK_NUMPAD0
VK_NUMPAD1
VK_NUMPAD2
VK_NUMPAD3
VK_NUMPAD4
VK_NUMPAD5
VK_NUMPAD6
VK_NUMPAD7
VK_NUMPAD8
VK_NUMPAD9
VK_OEM_1
VK_OEM_102
VK_OEM_2
VK_OEM_3
VK_OEM_4
VK_OEM_5
VK_OEM_6
VK_OEM_7
VK_OEM_8
VK_OEM_CLEAR
VK_OEM_COMMA
VK_OEM_MINUS
VK_OEM_PERIOD
VK_OEM_PLUS
VK_PA1
VK_PACKET
VK_PAUSE
VK_PLAY
VK_PRINT
VK_PRIOR
VK_PROCESSKEY
VK_RBUTTON
VK_RETURN
VK_RIGHT
VK_RMENU
VK_RWIN
VK_SCROLL
VK_SELECT
VK_SEPARATOR
VK_SLEEP
VK_SNAPSHOT
VK_SPACE
VK_SUBTRACT
VK_TAB
VK_UP
VK_VOLUME_DOWN
VK_VOLUME_MUTE
VK_VOLUME_UP
VK_XBUTTON1
VK_XBUTTON2
VK_ZOOM
W
X
Y
Z

Methods

Equals(Key)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

ToString()

Returns the string value of Key.

Operators

Equality(Key, Key)

Compares two Key values returning whether they are equal.

Implicit(Key to String)

Implicitly converts a Key to a string.

Inequality(Key, Key)

Compares two Key values returning whether they are different.

Applies to