From 7d68ecad58b6cd9e05ef8785d1f7efbed6701b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaro=20Mart=C3=ADnez?= Date: Thu, 1 May 2025 01:35:12 -0500 Subject: [PATCH] Add MOD enum for keyboard modifier keys --- .../NativeMethods.User32.cs | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/ManagedShell.Interop/NativeMethods.User32.cs b/src/ManagedShell.Interop/NativeMethods.User32.cs index fe8de3e4..97078052 100644 --- a/src/ManagedShell.Interop/NativeMethods.User32.cs +++ b/src/ManagedShell.Interop/NativeMethods.User32.cs @@ -3046,6 +3046,32 @@ public enum KLF : uint SETFORPROCESS = 0x00000100 } + [Flags] + public enum MOD : uint + { + /// + /// Either ALT key must be held down. + /// + ALT = 0x0001, + /// + /// Either CTRL key must be held down. + /// + CONTROL = 0x0002, + /// + /// Changes the hotkey behavior so that the keyboard auto-repeat does not yield multiple hotkey notifications. + /// Windows Vista: This flag is not supported. + /// + NOREPEAT = 0x4000, + /// + /// Either SHIFT key must be held down. + /// + SHIFT = 0x0004, + /// + /// 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. + /// + WIN = 0x0008 + } + public enum VK : int { ///