Skip to content

Undo and Redo in the Layout Editor

While building or editing a layout, you can undo your recent changes in the layout editor and redo them again. This lets you quickly recover from an accidental edit, deletion or move, without closing the layout or reversing every step by hand.

How to undo and redo

You can undo and redo in two ways:

  • With the Undo and Redo buttons above the layout, next to the Full Screen button. The buttons are also available in full-screen mode. Hovering a button shows its keyboard shortcut.
  • With the keyboard, while the layout canvas is focused:
Action Windows / Linux macOS
Undo Ctrl+Z Cmd+Z
Redo Ctrl+Y or Ctrl+Shift+Z Cmd+Shift+Z

Each undo reverts exactly one action, most recent first, and each redo reapplies it. After every undo or redo, a notification tells you which action was undone or redone, for example Undone: Delete dataset. When you undo several times in a row, the notifications show you the order in which the actions were reverted.

The buttons are disabled when there is nothing to undo or redo.

What can be undone

Every change you make to the layout itself can be undone, including:

  • adding, moving and deleting controls, also when you drag several fields onto the layout at once;
  • adding and removing rows and columns;
  • adding, removing and reordering tabs;
  • reordering grid columns, changing the grid sorting and removing grid columns;
  • deleting datasets and action groups;
  • changing properties in the properties pane. All changes you confirm in the pane at once are undone together, as one action;
  • positioning a map in interactive mode. Everything you change during one interactive-mode session is undone together;
  • edits in the JSON tab. To undo them, switch to the Layout tab and press the undo shortcut or the Undo button.

Changes on the General tab, such as the name or label of the layout, are not part of the undo history and are never reverted by an undo.

After an undo or redo, the layout scrolls back to where the action took place, so you can see what changed, and nothing is selected. Undoing a JSON tab edit keeps the current scroll position.

Note

The JSON tab only shows the rows, datasets, action groups and the page toolbar of the layout. The other properties, such as the name, the label and the autosave settings, are edited on the General tab.

When undo is not available

Undo and redo are temporarily unavailable:

  • while the properties pane is open. Confirm or cancel the pane first;
  • while a map is in interactive mode. Leave interactive mode first, for example with Esc, and then undo the whole positioning at once;
  • for a moment right after an undo or redo, while the layout is being rebuilt.

Inside an input field, such as a field in the properties pane or the JSON editor, the shortcuts undo your typing in that field as usual. They do not change the layout history.

When the history is cleared

The undo history only covers the current editing session. It is cleared, and cannot be restored, when you:

  • save the layout;
  • close the layout, or open another layout;
  • enable or disable Enable Autosave on the General tab. Enabling autosave can make datasets read-only, so older layout states can no longer be restored safely. A notification tells you when the history has been cleared.

The history keeps the last 50 actions. When you make more changes, the oldest ones can no longer be undone.