...
First, you need to check a special box on the “Global changes” tab, like it is displayed on this the screenshot below.
...
Then you should develop a special listener, that will be listening to such an event. You can find a small example of how it should be done here in the code example section.
...