多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
2.5 KiB

---
title: 'Actions on record'
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
## Keyboard navigation within Grid view
A selected cell can be in one of the following states:
1. `Select` state : A single click on the cell selects the cell. When in this state, arrow keys can be used to navigate to adjacent cells.
2. `Edit` state : A double click on the cell puts the cell in edit state. Cursor can be moved within the cell using arrow keys.
:::note
- Double-click on a cell to put it in edit state directly.
- From Select state, press `Enter` key to enter edit state.
- Press `Esc` key to exit edit state.
- From Edit state, press `Enter` key to save the changes.
:::
Edit state for some cells will be a picker. For example, a cell with `Single Select` field type will have a picker with options to choose from. In such cases, arrow keys can be used to navigate between options.
### Keyboard shortcuts for cell navigation
| Key | Behaviour |
|----------------:|:-------------------------------------------------------------------------------------|
| `⌘` `↑` | Jump to first record in this column (in same page) |
| `⌘` `↓` | Jump to last record in this column (in same page) |
| `⌘` `C` | Copy cell contents to clipboard |
| `⌘` `V` | Paste clipboard contents to cell |
| `Enter` | Switch cell in focus to EDIT mode; opens modal/picker if cell is associated with one |
| `Esc` | Exit cell EDIT mode |
| `Delete` | Clear cell |
| `Space` | Expand current row |
| `←` `→` `↑` `↓` | General cell navigation : left, right, top, bottom |
| `Tab` | Move to next cell horizontally; if on last cell, move to next row beginning |
### Row Edit
You can start editing by any of the following methods
- Double-click on cell to edit
- Click on cell and start typing (this way it will clear the previous content)
- Click on cell and press enter to start editing
And it will automatically save on blur event or if inactive.