---
title: "editor.contextMenu: Right-Click the Grid — Sheet kit command — Kition"
description: "A right-click on the grid at document point (x, y), as the editor's right-click menus do: enters what is being typed, then selects the cell, row or column heading pressed (unless it is already selected) or the whole sheet (the corner). Answers which menu shows: cell, rows, cols, all, or null (an outline button)."
canonical: "https://developer.kition.ai/docs/kits/sheet/commands/editor.contextMenu"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/sheet/commands/editor.contextMenu](https://developer.kition.ai/docs/kits/sheet/commands/editor.contextMenu)

# editor.contextMenu

**Right-Click the Grid.** A right-click on the grid at document point (x, y), as the editor's right-click menus do: enters what is being typed, then selects the cell, row or column heading pressed (unless it is already selected) or the whole sheet (the corner). Answers which menu shows: cell, rows, cols, all, or null (an outline button).

- Kit: Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb)); reference: [Sheet kit commands](https://developer.kition.ai/docs/kits/sheet.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `x` | `number` | no |  |
| `y` | `number` | no |  |

## Call through sheet_run

```text
sheet_run {
  "path": "<file>.xlsx",
  "steps": [{ "command": "editor.contextMenu" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `x`, `y`. sheet_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `target` | `null \| "cell" \| "rows" \| "cols" \| "all"` | no |  |

```json
{
  "additionalProperties": false,
  "properties": {
    "target": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "enum": [
            "cell",
            "rows",
            "cols",
            "all"
          ],
          "type": "string"
        }
      ]
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/sheet-darwin-arm64@0.1.0 and the kit itself (sheet_commands through @kition/cli@0.1.1, built from KitionAI/kition-sheet@82f13b2).
