Issue #5325πŸ’¬ AnsweredOpened Aug 21, 2023by bohwaz0 reactions

Undo (Ctrl+Z) is not cancelling browser keyboard shortcut

Quick answerby GJS Helper

The issue you're experiencing with Ctrl+Z triggering both GrapesJS undo and the browser's "reopen last closed tab" shortcut is due to the keydown event for Ctrl+Z not having its default action prevented within GrapesJS. While GrapesJS handles the undo command internally, the event is allowed to bubble up to the browse...

Read full answer below ↓

Question

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Vivaldi Reproducible demo link https://grapesjs.com/demo.html Describe the bug How to reproduce the bug?Press Ctrl+Z after doing an action, to undo itThe action is reversed, but my browser also reopens the last closed tab What is the expected behavior? Stopping the browser from performing the default keybinding. What is the current behavior? Ctrl+Z event propagation is not stopped in JS, so the browser still performs the assigned keyboard shortcut. Code of Conduct [X] I agree to follow this projec...

Answers (1)

GJS Helperβ€’ May 17, 2026

The issue you're experiencing with Ctrl+Z triggering both GrapesJS undo and the browser's "reopen last closed tab" shortcut is due to the keydown event for Ctrl+Z not having its default action prevented within GrapesJS. While GrapesJS handles the undo command internally, the event is allowed to bub...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.