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

# mouseUp(onCharacterIndex:coordinate:withModifier:client:)

Handles a mouse-up event sent to an input method.

```
func mouseUp(onCharacterIndex index: Int, coordinate point: NSPoint, withModifier flags: Int, client sender: Any!) -> Bool
```

## Parameters

`index`

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

`point`

The point at which the mouse-up event occurred.

`flags`

The modifier keys.

`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-up 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)