# Keyboard shortcuts

## Built-in keyboard shortcuts

Keyboard shortcuts are a powerful tool that can greatly improve productivity and efficiency when working on a computer. With the ability to assign custom keystrokes to frequently used commands, tasks can be completed quickly and with minimal effort. This is particularly useful for individuals who rely heavily on keyboard input, such as programmers, writers, or designers.

Keyboard shortcuts have been around for decades, and most software applications come with a set of default shortcuts. OpenFlower offers built-in keyboard shortcuts to help you work on the interface faster and more efficiently with improved controlling precision.

### Global

Global keyboard shortcuts across OpenFlower interfaces.

| Shortcut | Description               |
| -------- | ------------------------- |
| `?`      | Toggle keyboard shortcuts |

### App editor

Keyboard shortcuts in the App editor.

| Shortcut      | Description        |
| ------------- | ------------------ |
| `⌘` + `B`     | Toggle left pane   |
| `⌘` + `J`     | Toggle bottom pane |
| `⌘` + `U`     | Toggle right pane  |
| `⌘` + `.`     | Toggle all panes   |
| `⌘` + ⇧ + `P` | Preview            |
| `⌘` + `Z`     | Undo               |
| `⌘` + ⇧ + `Z` | Redo               |
| `⌘`           | Show grid          |

### Component

Keyboard shortcuts to control components.

| Shortcut              | Description     |
| --------------------- | --------------- |
| `⌘` + Click           | Select multiple |
| `⌘` + `A`             | Select all      |
| `⌘` + `C`             | Copy            |
| `⌘` + `X`             | Cut             |
| `⌘` + `V`             | Paste           |
| `←` `↑` `→` `↓`       | Move            |
| `⌘` + `←` `↑` `→` `↓` | Resize          |
| `DEL`/`Backspace`     | Delete          |
| `ESC`                 | Deselect        |

### Query editor

Keyboard shortcuts in the Query editor.

| Shortcut  | Description       |
| --------- | ----------------- |
| `⌘` + `↵` | Run current query |

### Text editor

Keyboard shortcuts in the Text editor.

| Shortcut    | Description       |
| ----------- | ----------------- |
| `⌘` + `L`   | Format            |
| `⌘` + Click | Open in left pane |

## Custom keyboard shortcuts

You can define custom keyboard shortcuts at app-level. Go to ⚙️ on the left side-bar > **App settings** > **Custom shortcuts**. Click **+ Add** to add new shortcuts for specific actions. Then, you can click a custom shortcut to midify it or click the three dots `···` to delete it.

{% hint style="info" %}
OpenFlower keyboard shortcuts are better set to avoid conflicts with the browser's keyboard shortcuts, in case they can not be successfully triggered.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.openflower.org/build-applications/app-editor/keyboard-shortcuts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
