# Keyboard and command palette

Do you know what you want to do, but not where the button is? Press <kbd>Ctrl</kbd>+<kbd>K</kbd> and type it. The **command palette** of the Gridfinity Layout Tool finds any layout command from part of its name. With the palette and the keyboard controls on this page, you can plan a drawer with very few mouse clicks. For every shortcut, see [Keyboard shortcuts](https://gridfinitylayouttool.com/docs/reference/shortcuts).

## Open the command palette

1. Open the layout editor.
2. Click the grid or an empty part of the page, so that no text field has the focus.
3. Press <kbd>Ctrl</kbd>+<kbd>K</kbd>, or <kbd>Cmd</kbd>+<kbd>K</kbd> on a Mac.

The palette works in the layout editor on a computer or a tablet. It doesn't open in the bin designer, in the baseplate generator, or on a phone.

*Picture: The command palette open over the layout editor, with the search box, the Recent group and the command groups below it.*

## Find and run a command

Type part of a command name in **Search commands...**. The list gets shorter as you type.

| Key                           | Action                               |
| ----------------------------- | ------------------------------------ |
| <kbd>↑</kbd> and <kbd>↓</kbd> | Move to the previous or next command |
| <kbd>Enter</kbd>              | Run the selected command             |
| <kbd>Esc</kbd>                | Close the palette                    |

*Video: With the Fuses bin selected, Ctrl+K opens the command palette. The search box gets dupl. The down arrow key moves to Duplicate selected, and Enter runs it. A copy of the bin shows on the grid.*

A command that has a shortcut shows its keys on the right. Look there to learn the shortcuts of the commands that you use often.

## What the palette finds

The palette sorts the commands into groups:

| Group                                         | Examples                                                                                                                    |
| --------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| **Navigation** | **Open layout manager**, **Open settings**, **What's new** |
| **Edit**       | **Duplicate selected**, **Align left**, **Match height to tallest**     |
| **Layers**     | **Add layer**, **Go to layer above**, **Clear active layer**                 |
| **View**       | **Zoom in**, **Fit to screen**, **Toggle other layers**        |
| **3D Preview**    | **Toggle 3D preview**, **Expand/collapse preview**                                            |
| **Bins**       | **Select next bin**, **Move to stash**, **Restore all from staging**      |
| **Tools**      | **Fill layer gaps**, **Toggle paint mode**, **Toggle half-bin mode**      |
| **Export**     | **Export layout as ZIP (3D)**, **Download layout**, **Copy share link** |

The **Recent** group at the top shows up to five commands. It picks them from how often and how recently you used each command, and from what you do at the moment. For example, while bins are selected, the align and delete commands move up, if you used them before. A command that can't run at the moment stays in its group, but you can't select it.

With the Places feature from [Labs](https://gridfinitylayouttool.com/docs/settings/labs) turned on, the palette also finds bins by what they hold, in all your layouts. These results show above the commands. Select one to open its layout and select the bin.

## Search from the help dialog

Press <kbd>?</kbd> or <kbd>/</kbd> to open **Keyboard shortcuts**. Type in **Search shortcuts and features...** to find a shortcut or a feature. No match? Click **Search all commands instead**, and the command palette opens with the same words.

*Video: The question mark key opens Keyboard shortcuts. The search box gets align and finds no match. The pointer clicks Search all commands instead, and the command palette opens with align and the align commands.*

## Move through menus and panels

Most controls in the Layout Tool work from the keyboard. Press <kbd>Tab</kbd> to go to the next control, and <kbd>Shift</kbd>+<kbd>Tab</kbd> to go back.

| Control                    | Keys                                                                                                                                                                                                                          |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Menus                      | The first item gets the focus. <kbd>↑</kbd> and <kbd>↓</kbd> move through the items and wrap at the ends. <kbd>Home</kbd> and <kbd>End</kbd> go to the first and last item. <kbd>Esc</kbd> or <kbd>Tab</kbd> closes the menu. |
| Tabs and segmented buttons | The arrow keys move to the next or previous option. <kbd>Home</kbd> and <kbd>End</kbd> go to the first and last option.                                                                                                       |
| The tab list in Settings   | <kbd>↑</kbd> and <kbd>↓</kbd> move through all the tabs, across the groups.                                                                                                                                                   |
| Dialogs                    | The focus stays in the dialog. <kbd>Esc</kbd> closes it.                                                                                                                                                                      |

In the layout editor, a **Skip to grid planner** link shows when it gets the keyboard focus. Press <kbd>Enter</kbd> on it to jump to the grid. On the grid, the arrow keys move the selected bins. See [Keyboard shortcuts](https://gridfinitylayouttool.com/docs/reference/shortcuts) for all grid keys.

In the bin designer, the search box at the top of the panel finds a setting by name. Type a word, pick a match with <kbd>↑</kbd> and <kbd>↓</kbd>, and press <kbd>Enter</kbd> to jump to that setting. <kbd>Esc</kbd> clears the search.

*Video: In the bin designer, the pointer clicks the search box at the top of the panel and types scoop. The match Finger scoop shows below the box, in the Interior group. Enter jumps the panel to the Finger scoop setting.*

## When it goes wrong

### The command palette doesn't open

Click an empty part of the grid, then press the keys again. Not in the layout editor? Click **Layout** first.

The palette ignores <kbd>Ctrl</kbd>+<kbd>K</kbd> while a text field has the focus. It also doesn't open in the other tools.

### A command is gray, and you can't select it

Select the bins that the command works on, then open the palette again.

Most bin commands need a selection. **Duplicate selected** needs one bin or more. The align commands and **Match height to tallest** need two or more. **Rotate bin** needs exactly one bin, with no size lock.

*Picture: The command palette with align typed and no bins selected. The align commands and Match height to tallest show in gray in the Edit group.*

## Next steps

- [Keyboard shortcuts](https://gridfinitylayouttool.com/docs/reference/shortcuts): the full table of shortcuts in each tool.
- [Settings and accessibility](https://gridfinitylayouttool.com/docs/settings/settings): reduce motion, high contrast and patterns for categories.
- [Work with several bins](https://gridfinitylayouttool.com/docs/layouts/multi-select): select many bins, then align or move them with commands.
