lewish / asciiflow

ASCIIFlow
https://asciiflow.com
MIT License
4.54k stars 357 forks source link

Call `preventDefault()` on Cmd+Z/Cmd+Shift+Z/Cmd+Y #301

Closed iamakulov closed 1 month ago

iamakulov commented 1 month ago

This PR calls preventDefault() for:

This partially addresses https://github.com/lewish/asciiflow/issues/189. I have a feeling we’ll be safe just calling event.preventDefault() on any keyboard event, but I don’t feel like testing it :D