---
title: "mouseDown(onCharacterIndex:coordinate:withModifier:continueTracking:client:)"
framework: InputMethodKit
role: symbol
role_heading: Instance Method
platforms: [macOS 10.0+]
path: "inputmethodkit/imkmousehandling/mousedown(oncharacterindex:coordinate:withmodifier:continuetracking:client:)"
---

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

Handles mouse-down event send to an input method.

## Declaration

```swift
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

Return Value true if handled; otherwise false.

## Discussion

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

## See Also

### Handling Mouse Events

- [mouseUp(onCharacterIndex:coordinate:withModifier:client:)](inputmethodkit/imkmousehandling/mouseup(oncharacterindex:coordinate:withmodifier:client:).md)
- [mouseMoved(onCharacterIndex:coordinate:withModifier:client:)](inputmethodkit/imkmousehandling/mousemoved(oncharacterindex:coordinate:withmodifier:client:).md)
