<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDraggingSource/ignoreModifierKeys(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSDraggingSource(im)ignoreModifierKeysForDraggingSession:"
  },
  "title" : "ignoreModifierKeys(for:)"
}
-->

# ignoreModifierKeys(for:)

Returns whether the modifier keys will be ignored for this dragging session.

```
@MainActor optional func ignoreModifierKeys(for session: NSDraggingSession) -> Bool
```

## Parameters

`session`

The dragging session.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the modifier keys will be ignored, <doc://com.apple.documentation/documentation/Swift/false> otherwise.

---

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)