# Keyboard shortcuts (/docs/tips/keyboard-shortcuts)



Factophant has keyboard shortcuts in two places: a few that work **anywhere** in the
app, and a fuller set for the **editors** when you are building. Every one of them
can be changed to whatever suits you.

<Callout type="info">
  **mod** means the modifier key for your computer: <kbd>Command</kbd> on a Mac, and
  <kbd>Ctrl</kbd> on Windows and Linux.
</Callout>

## Anywhere [#anywhere]

These work throughout Factophant, whatever page you are on.

| Shortcut                        | What it does                                                      |
| ------------------------------- | ----------------------------------------------------------------- |
| <kbd>mod</kbd> + <kbd>K</kbd>   | Open search, and switch between apps                              |
| <kbd>mod</kbd> + <kbd>B</kbd>   | Toggle the sidebar between the wide dock and the narrow icon rail |
| <kbd>mod</kbd> + <kbd>J</kbd>   | Open or close &#x2A;*Vera (AI)**                                  |
| <kbd>Shift</kbd> + <kbd>/</kbd> | Show the keyboard-shortcuts help                                  |

Search jumps you straight to any app, indicator, or node. See [Search](./search.mdx).

The sidebar toggle has nothing to do in an app editor, because the editor replaces
the sidebar with its own full-width bar.

## In the app editor [#in-the-app-editor]

The rest apply while you are editing an app.

### Panels [#panels]

Panel toggles are single keys - they fire only when you are **not** typing in a
field, so they never clash with your text.

| Shortcut                                         | What it does                          |
| ------------------------------------------------ | ------------------------------------- |
| <kbd>P</kbd>                                     | Toggle the **Data Pipeline** panel    |
| <kbd>V</kbd>                                     | Toggle the **Visualisation** panel    |
| <kbd>K</kbd>                                     | Toggle the **Knowledge Base** panel   |
| <kbd>mod</kbd> + <kbd>Shift</kbd> + <kbd>.</kbd> | Maximize or restore the current panel |

### Editing and navigation [#editing-and-navigation]

| Shortcut     | What it does                                                                                           |
| ------------ | ------------------------------------------------------------------------------------------------------ |
| <kbd>E</kbd> | Open the editor from the app, and go **Back to viewer** from the editor                                |
| <kbd>/</kbd> | Search the view you are on - the pipeline canvas, the list beside it, or the open **Add widget** sheet |
| <kbd>A</kbd> | Open or close the **Add widget** sheet while you edit a Visualisation page                             |
| <kbd>F</kbd> | Open or close the **Page filters** while you edit a Visualisation page                                 |
| <kbd>C</kbd> | Open or close the **App theme** while you edit a Visualisation page                                    |

<kbd>A</kbd>, <kbd>F</kbd> and <kbd>C</kbd> work while a Visualisation page is on screen and you are editing it.
They open the same sheet in the toolbar: with it open, each switches it to what it opens, and closes
it when it already shows that. In a text field, such as the Add widget search, they type their
letter instead, and <kbd>Esc</kbd> closes the sheet from anywhere in it. See
[The editor's toolbar](../analytical-apps/visualisation.mdx#toolbar).

### In an indicator app's data grid [#in-an-indicator-apps-data-grid]

| Shortcut                                       | What it does                                                         |
| ---------------------------------------------- | -------------------------------------------------------------------- |
| <kbd>mod</kbd> + <kbd>Alt</kbd> + <kbd>M</kbd> | Open the comment of the selected cell, even while you type its value |

<kbd>Alt</kbd> is <kbd>Option</kbd> on a Mac. See [Comments](../indicator-apps/data.mdx#comments).

### In the survey editor [#in-the-survey-editor]

A survey's editor has its own small set, and <kbd>E</kbd> does not apply there: open it
with **Open editor** and leave it with **Back to responses**.

| Shortcut                       | What it does                                    |
| ------------------------------ | ----------------------------------------------- |
| <kbd>P</kbd>                   | Switch the form between building and previewing |
| <kbd>mod</kbd> + <kbd>\\</kbd> | Show or hide the question outline               |
| <kbd>/</kbd>                   | Search the question outline                     |

See [Building the form](../survey-apps/build-the-form.mdx).

## Changing a shortcut [#changing-a-shortcut]

Open **Settings** from your account menu and choose **Keyboard shortcuts**. Click
the keys on any row and press the combination you want.

* <kbd>Esc</kbd> cancels and leaves the shortcut as it was.
* <kbd>Backspace</kbd> removes the shortcut, so that action has no key at all.
* The **Reset** button beside a changed row puts it back to its original key, and
  **Reset all to defaults** puts everything back at once.

Your shortcuts are saved to your account, so they follow you to every browser,
every computer, and every workspace you belong to.

A few combinations cannot be used, because your browser takes them before Factophant
ever sees them - <kbd>mod</kbd> + <kbd>W</kbd>, <kbd>T</kbd>, <kbd>N</kbd>,
<kbd>Q</kbd>, <kbd>L</kbd>, <kbd>R</kbd> and the number keys among them. Factophant
tells you when you press one rather than letting you set a shortcut that would
never work.

If the combination you press is already used by something else on the same screen,
Factophant asks whether you want to move it. If you say yes, the other action is left
with no shortcut, and it says so.

## Good to know [#good-to-know]

* Press <kbd>Shift</kbd> + <kbd>/</kbd> at any time to open a help window listing
  the shortcuts that work where you are standing. The full list is in Settings.
* Single-key shortcuts are ignored while you are typing in a text box, an editor,
  or a query, so they never get in the way. That holds even for the few shortcuts
  that otherwise work while you type: if you give one a single key, it stops
  working inside text fields, and Factophant says so when you set it.
* There is no shortcut for running or for publishing, on purpose: both are
  deliberate steps you take from the **Run** and **Publish** buttons in the editor
  bar. Your edits are saved to your private draft as you go, so leaving the editor
  never loses work.
* <kbd>mod</kbd> + <kbd>S</kbd> does nothing in the editor. Factophant catches the
  keystroke only so your browser does not open its own "save this page" window out
  of habit. In a data grid it saves your edited rows.
