Which client app are you using? I think D2 and xcp, both support events that you can extend to override this behavior.
You will probably need to write your own custom D2 plugin for 7.2.