<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "InputMethodKit",
  "identifier" : "/documentation/InputMethodKit/IMKMouseHandling/mouseDown(onCharacterIndex:coordinate:withModifier:continueTracking:client:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "InputMethodKit"
    ],
    "preciseIdentifier" : "c:objc(pl)IMKMouseHandling(im)mouseDownOnCharacterIndex:coordinate:withModifier:continueTracking:client:"
  },
  "title" : "mouseDown(onCharacterIndex:coordinate:withModifier:continueTracking:client:)"
}
-->

# mouseDown(onCharacterIndex:coordinate:withModifier:continueTracking:client:)

Handles mouse-down event send to an input method.

```
func mouseDown(onCharacterIndex index: Int, coordinate point: NSPoint, withModifier flags: Int, continueTracking keepTracking: UnsafeMutablePointer<ObjCBool>!, client sender: Any!) -> Bool
```

## Parameters

`index`

The index within the sender’s text storage where the mouse-down event occurred.

`point`

The point at which the mouse-down event occurred.

`flags`

The modifier keys.

`keepTracking`

Set this parameter to <doc://com.apple.documentation/documentation/Swift/true> if you want to receive subsequent mouse-moved and mouse -up events.

`sender`

The client object.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if handled; otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

Implement this method if your input method handles mouse-down events.

---

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)