---
title: "ignoreModifierKeys(for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsdraggingsource/ignoremodifierkeys(for:)"
---

# ignoreModifierKeys(for:)

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

## Declaration

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

## Parameters

- `session`: The dragging session.

## Return Value

Return Value true if the modifier keys will be ignored, false otherwise.
