Your comments

Catch the shortcut and do nothing. I think ShaderForge is perfectly fine without undo.