MonobjcMonobjc Documented Class Library
NSModifierFlag Enumeration
NamespacesMonobjc.AppKitNSModifierFlag

The following constants (except for NSDeviceIndependentModifierFlagsMask) represent device-independent bits found in event modifier flags:

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
[FlagsAttribute]
public enum NSModifierFlag
<FlagsAttribute> _
Public Enumeration NSModifierFlag
[FlagsAttribute]
public enum class NSModifierFlag
Members
MemberDescription
NSAlphaShiftKeyMask

Set if Caps Lock key is pressed.

Available in Mac OS X v10.0 and later.


NSShiftKeyMask

Set if Shift key is pressed.

Available in Mac OS X v10.0 and later.


NSControlKeyMask

Set if Control key is pressed.

Available in Mac OS X v10.0 and later.


NSAlternateKeyMask

Set if Option or Alternate key is pressed.

Available in Mac OS X v10.0 and later.


NSCommandKeyMask

Set if Command key is pressed.

Available in Mac OS X v10.0 and later.


NSNumericPadKeyMask

Set if any key in the numeric keypad is pressed. The numeric keypad is generally on the right side of the keyboard. This is also set if any of the arrow keys are pressed (NSUpArrowFunctionKey, NSDownArrowFunctionKey, NSLeftArrowFunctionKey, and NSRightArrowFunctionKey).

Available in Mac OS X v10.0 and later.


NSHelpKeyMask

Set if the Help key is pressed.

Available in Mac OS X v10.0 and later.


NSFunctionKeyMask

Set if any function key is pressed. The function keys include the F keys at the top of most keyboards (F1, F2, and so on) and the navigation keys in the center of most keyboards (Help, Forward Delete, Home, End, Page Up, Page Down, and the arrow keys).

Available in Mac OS X v10.0 and later.


NSDeviceIndependentModifierFlagsMask

Used to retrieve only the device-independent modifier flags, allowing applications to mask off the device-dependent modifier flags, including event coalescing information.

Available in Mac OS X v10.4 and later.


Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)