Skip to content

Commit 7d68eca

Browse files
committed
Add MOD enum for keyboard modifier keys
1 parent dbd3faa commit 7d68eca

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/ManagedShell.Interop/NativeMethods.User32.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3046,6 +3046,32 @@ public enum KLF : uint
30463046
SETFORPROCESS = 0x00000100
30473047
}
30483048

3049+
[Flags]
3050+
public enum MOD : uint
3051+
{
3052+
/// <summary>
3053+
/// Either ALT key must be held down.
3054+
/// </summary>
3055+
ALT = 0x0001,
3056+
/// <summary>
3057+
/// Either CTRL key must be held down.
3058+
/// </summary>
3059+
CONTROL = 0x0002,
3060+
/// <summary>
3061+
/// Changes the hotkey behavior so that the keyboard auto-repeat does not yield multiple hotkey notifications.
3062+
/// Windows Vista: This flag is not supported.
3063+
/// </summary>
3064+
NOREPEAT = 0x4000,
3065+
/// <summary>
3066+
/// Either SHIFT key must be held down.
3067+
/// </summary>
3068+
SHIFT = 0x0004,
3069+
/// <summary>
3070+
/// Either WINDOWS key must be held down. These keys are labeled with the Windows logo. Keyboard shortcuts that involve the WINDOWS key are reserved for use by the operating system.
3071+
/// </summary>
3072+
WIN = 0x0008
3073+
}
3074+
30493075
public enum VK : int
30503076
{
30513077
///<summary>

0 commit comments

Comments
 (0)