# Keyboard shortcuts

> Every keyboard shortcut in the page editor: save, undo, duplicate, group, nudge, copy style, preview a device and the Layers panel keys.

Source: https://docs.personacart.com/editor/keyboard-shortcuts

In short: {"Every keyboard shortcut in the page editor: save, undo, duplicate, group, nudge, copy style, preview a device and the Layers panel keys."}

The page editor has keyboard shortcuts for the things you do most. Press **Cmd+/** (**Ctrl+/** on Windows) or **?** anywhere in the editor to open the shortcuts list ("Speed up your workflow"). The list is the same as the tables below.

In these tables, **Cmd** means the Command key on a Mac and **Ctrl** on Windows or Linux.

:::info[Typing wins]
When your cursor is in a text box, a plain key types text instead of running a shortcut (so 1, 2 and 3 never switch the preview while you type a number). Delete and the arrow keys only act on the selection while the canvas or the Layers panel has focus.
:::

1. Press **Cmd+/** (**Ctrl+/** on Windows) in the editor to open the list.
2. Use **Cmd+S** to save and **Cmd+Z** to undo.
3. Press **Cmd+E** to add a block and **Cmd+D** to duplicate one.

## Where to find it

Sidebar → STOREFRONT → Pages, then open a page. A page opens in **Simple view** or in the full editor, depending on your account (see [Simple view and full editor](/editor#simple-view-and-full-editor)). In the full editor, **Layers** and **Add** are on the left, the canvas is in the middle and the inspector is on the right. Press **Cmd+/** (**Ctrl+/** on Windows) inside the editor to see the list.

## Save, undo and history

| Shortcut | What it does |
| --- | --- |
| **Cmd+S** | Save now |
| **Cmd+Z** | Undo |
| **Cmd+Shift+Z** or **Cmd+Y** | Redo |

## Add, copy and arrange

| Shortcut | What it does |
| --- | --- |
| **Cmd+E** | Add component (opens the Add picker) |
| **Cmd+D** | Duplicate the selected layer(s) |
| **Cmd+Shift+D** | Duplicate the enclosing section |
| **Cmd+C** / **Cmd+V** | Copy the selected element / paste it after the selection |
| **Cmd+G** | Wrap the selection in a new container |
| **Cmd+Alt+G** | Wrap the selection in a box you can arrange |
| **Cmd+Shift+G** | Dissolve a container and promote its children to the parent |
| **Cmd+Shift+E** | Center the selection |
| **Cmd+;** | Hide or show the selected layer |
| **Delete** or **Backspace** | Delete the selected node (only while the canvas has focus) |
| **Cmd+Delete** or **Cmd+Backspace** | Delete the selection from anywhere, including the Layers panel |
| **Cmd+K** | Quick-jump to any layer |
| **Shift+Click** | Add to the selection (select several layers) |

## Styles and transforms

| Shortcut | What it does |
| --- | --- |
| **Cmd+Alt+C** / **Cmd+Alt+V** | Copy style from the selection / paste style onto the selection |
| **Cmd+Alt+Shift+C** / **Cmd+Alt+Shift+V** | Copy or paste the style **and** rotate, scale, move and opacity |
| **Cmd+0** | Reset transform and opacity on the selection |
| **I** | Pick a color from the canvas (eyedropper; Chromium-based browsers only) |

These nudge and opacity keys act on layers you have free-placed on the canvas. Elements inside a normal section move by drag or in the **Layout** tab.

| Shortcut | What it does |
| --- | --- |
| **Arrow keys** | Nudge the selection by 1 px |
| **Shift+Arrow keys** | Nudge by 10 px |
| **Alt+Arrow keys** | Nudge by 0.5 px (fine) |
| **[** / **]** | Decrease / increase opacity by 10% |
| **Shift+[** / **Shift+]** | Decrease / increase opacity by 50% (a fast 0 / 100 toggle) |
| **Alt+[** / **Alt+]** | Decrease / increase opacity by 1% (precision) |
| **Hold Shift while dragging** | Bypass snapping |
| **Esc** while dragging, rotating or resizing | Cancel the gesture |

## View and navigate

| Shortcut | What it does |
| --- | --- |
| **1** | Preview on Web (desktop) |
| **2** | Preview on Tablet |
| **3** | Preview on Phone |
| **P** | Switch between Editor and Preview |
| **Shift+A** | Show or hide all animations |
| **Alt+1** / **Alt+2** / **Alt+3** | Open the inspector's **Content** / **Layout** / **Style** tab |
| **Esc** | Deselect, or close the open dialog |
| **Cmd+/** or **?** | Open the shortcuts list |

## Layers panel keys

When the Layers panel has focus (click a row first):

| Shortcut | What it does |
| --- | --- |
| **Up / Down** | Move the cursor to the previous / next layer |
| **Left / Right** | Collapse or expand the layer |
| **Home / End** | Jump to the first / last layer |
| **Enter** | Select the layer |
| **Space** | Hide or show the layer |
| **F2** | Rename the layer |
| **Cmd+Up / Cmd+Down** | Move the layer earlier / later among its siblings |
| **Cmd+Left / Cmd+Right** | Move the layer out of / into its neighbour |
| **Delete** or **Backspace** | Delete the layer |
| **Esc** | Leave the panel |

See [Layers panel](/editor/layers-and-tree) for what each action does.

## Imported HTML sections

In an imported (HTML) section: **Tab** and **Shift+Tab** go to the next or previous element, the arrow keys go up to the parent, down to a child or across to siblings, and **Enter** opens the panel to edit the selected element.

## Steps: duplicate a card and match its style

  Click the card on the canvas.
  Press Cmd+D to duplicate it. The copy appears after the original.
  Select another card, press Cmd+Alt+C to copy its style, select the new card and press Cmd+Alt+V.
  Press Cmd+Z if you did not like it.

## What happens, and what doesn't

- Every shortcut also exists as a button or a menu item, so you never have to use the keyboard.
- Shortcuts only run in the editor; the preview of your page for visitors does not use them.
- Some shortcuts only work when a layer is selected, and the eyedropper only works in browsers that support it.

## Questions
