Prevents keyboard events from leaking from the code editor to the block editor. It solves the problem of, e.g., undoing block changes when pressing cmd+z with the intention of undoing code changes.
Testing Instructions
Add a few paragraph blocks
Add the Playground block
Enable the code editor
Start typing
Press cmd+s, the code should be re-run
Press cmd+z a few times, it should only undo the changes inside the code editor but not in the block editor
What?
Prevents keyboard events from leaking from the code editor to the block editor. It solves the problem of, e.g., undoing block changes when pressing
cmd+z
with the intention of undoing code changes.Testing Instructions