suren-atoyan / monaco-react

Monaco Editor for React - use the monaco-editor in any React application without needing to use webpack (or rollup/parcel/etc) configuration files / plugins
https://monaco-react.surenatoyan.com/
MIT License
3.81k stars 268 forks source link

[Bug] Paste in editor context menu didn't work #606

Open Cheese-Yu opened 7 months ago

Cheese-Yu commented 7 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. enable webpack process polyfill
  2. build and open monaco-editor
  3. right click the editor menu and click paste, it paste nothing
  4. right click the editor menu show "Ctrl+" in MacOs, but not "⌘+"
  5. refer: https://github.com/microsoft/monaco-editor/issues/4438

Or, please add a minimal code snippet to reproduce the issue, for example in codesandbox.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help to explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.