Keymaster not unbinding keypresses.
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)
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...
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...
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.
Issue #3947
Selection box not clickable in editor
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Firefox 94.0.1Reproducible demo link https:/...
Issue #6152
CSS added via custom code persists after custom code component is removed
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? any Reproducible demo link https://grapesj...
Issue #4503
Missing inline styles used by CKEditor when adding raw html components
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chromium v96 Reproducible demo link https:...
Issue #5757
The link titles are not editable
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v122, Safari 17 Reproducible demo l...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins β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.