Issue #2765πŸ’¬ AnsweredOpened May 12, 2020by svalenciano812 reactions

Backspace key trigger navigating back

Quick answerby artf❀ 1

Should be fixed in the next release

Read full answer below ↓

Question

Hi, in grapesjs in Firefox 75.0 when "backspace key" (event.which === 8) is pressed the navigator is going back and grapesjs is lost. To reproduce it: Open Firefox browser Open URL: https://grapesjs.com/ Click on: "Newsletter Demo" buttom Delete a element from editor usign "backspace key" (NOT using supr key) The behavior is: the navagator is going back and the editor is lost. I am trying this but it doesn't work: $document.on('keydown', function(e){ if(e.which === 8){ // you can add others here inside brackets. e.preventDefault(); e.stopPropagation(); } }); i can do something over/inside edi...

Answers (3)

artfβ€’ June 19, 2020

Should be fixed in the next release

tiptronic85β€’ May 13, 2020

Yes this is very annoying

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.