Hook listener to changeCursor event.