on click handler on standard back button

I am building a widget and some of the functionality that I am building attaches event handlers to some of the buttons that are present in the page, with dojo on. The handlers do work when you attach them to microflow buttons and data grid buttons, but they does not seem to work with the standard cancel button, can somebody explain why?
1 answers

You can add a handler to cancel buttons just fine.

Assuming your cancel button is called "cancelButton1", you can go to the page in the client, open the console and paste this:

require(["dojo/on"], function(dojoOn) { 
  dojoOn(document.querySelector(".mx-name-cancelButton1"), "click", function(e) {

You'll see that the listener is executed correctly.