GrapesJS version
What browser are you using?
Edge 144.0.3719.92
Reproducible demo link
https://jsfiddle.net/L61f0qtz/
Describe the bug
How to reproduce the bug?
- Open GrapesJS editor in Microsoft Edge.
- Add a keymap for saving using either Ctrl+S or Ctrl+Shift+S with { prevent: true }.
- Focus on the editor canvas (or anywhere in the editor).
- Press the shortcut (Ctrl+S or Ctrl+Shift+S).
What is the expected behavior?
The GrapesJS command console.log("save") should execute.
The browser should not open the “Save” or “Save As…” dialog
What is the current behavior?
The "console.log("save") not happen.
The browser triggers its default “Save” or “Save As…” dialog.
preventDefault() does not stop the browser shortcut in Edge.
Code of Conduct
GrapesJS version
What browser are you using?
Edge 144.0.3719.92
Reproducible demo link
https://jsfiddle.net/L61f0qtz/
Describe the bug
How to reproduce the bug?
What is the expected behavior?
The GrapesJS command console.log("save") should execute.
The browser should not open the “Save” or “Save As…” dialog
What is the current behavior?
The "console.log("save") not happen.
The browser triggers its default “Save” or “Save As…” dialog.
preventDefault() does not stop the browser shortcut in Edge.
Code of Conduct