Issue #2758πŸ’¬ AnsweredOpened May 7, 2020by mattdeigh0 reactions

Keymaster not unbinding keypresses.

Quick answerby artf

I'm wondering if the unbind command in keymaster was meant to handle an individual key instead of multiple ones in the case of backspace but the copy/paste/undo/redo are working correctly. Well, it works with other keymaps so I'd say it handles that option, but have no idea what is wrong with backspace, delete (with d...

Read full answer below ↓

Question

This is reproducible on the demo site running . In the console, run and try to delete a component. It does delete the component, and I don't believe it should. It seems like the other Keymaps are unbinding fine. I'm not sure if this is an issue with grapesjs or keymaster. Noticed this when I was adding a custom keymap for the arrow keys and noticed it wasn't getting cleaned up when was called. I did notice I could unbind the delete command like this: I'm wondering if the unbind command in keymaster was meant to handle an individual key instead of multiple ones in the case of backspace but the...

Answers (3)

artfβ€’ May 15, 2020

I'm wondering if the unbind command in keymaster was meant to handle an individual key instead of multiple ones in the case of backspace but the copy/paste/undo/redo are working correctly. Well, it works with other keymaps so I'd say it handles that option, but have no idea what is wrong with backs...

mattdeighβ€’ May 15, 2020

Man... I looked through Keymaster and that unbind function handles multiple keys, so the issue must be somewhere else. I didn't notice anything glaring when I looked. No errors show up when I try to unbind the key. I'm using GrapesJS in a single page app so I need to destroy GrapesJS and reinit it...

artfβ€’ May 15, 2020

Are you good with the string split approach?

Sure, let's see if it works

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 β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.