<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.12.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDeviceIndependentModifierFlagsMask",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSDeviceIndependentModifierFlagsMask"
  },
  "title" : "NSDeviceIndependentModifierFlagsMask"
}
-->

# NSDeviceIndependentModifierFlagsMask

Device-independent modifier flags are masked.

```
static const NSEventModifierFlags NSDeviceIndependentModifierFlagsMask;
```

## Discussion

Use this symbol to mask off device-dependent modifier flags, including event coalescing information. The result will contain only key event flags.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)