<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCell/mouseDownFlags",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCell(py)mouseDownFlags"
  },
  "title" : "mouseDownFlags"
}
-->

# mouseDownFlags

The modifier flags for the last (left) mouse-down event.

```
var mouseDownFlags: Int { get }
```

## Discussion

The value of this property is the value of the modifier flags from the most recent [`NSEvent`](/documentation/AppKit/NSEvent) object representing a mouse-down event. If tracking has not yet occurred or the event contained no modifier keys, the value of this property is `0`.

## See Also

[`var modifierFlags: NSEvent.ModifierFlags`](/documentation/AppKit/NSEvent/modifierFlags-swift.property)

An integer bit field that indicates the pressed modifier keys.



---

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)